Hi Support,
Folowing up from the my question at https://support.metabox.io/topic/mb-view-css-on-hover-not-applying/#post-45492
Besides an archive page, I want to display service cards as a section on the home page, and so I followed the MB docs (Create Reusable Template Parts) to use the following code but I am not getting the desired result. Could you please advise?
{% set args = {post_type: 'service', posts_per_page: -1} %}
{% set posts = mb.get_posts( args ) %}
<div class="service-card">
{% for post in query.posts %}
<div class="card-inner">
<p class="card-icon" style="width:2em;">{{ post.service_icon }}</p>
<h5 class="card-title">{{ post.title }}</h5>
<p class="card-excerpt">{{ post.service_excerpt }}</p>
</div>
{% endfor %}
</div>
Kind regards,