Hi MetaBox. I would like to ask how can I hide this h3 title if there is no post data inside the loop? I don't have any idea how to do it in views specially if the title is outside the loop. Thanks.
<h3>Title to hide if empty</h3>
{% set args = { post_type: "brand", posts_per_page: -1, tax_query: {
"relation": "AND",
0: {
taxonomy: "brand-category",
field: "slug",
terms: "Active"
},
1: {
taxonomy: "brand-category",
field: "slug",
terms: "neighborhood-businesses-or-operating-companies"
}
} } %}
{% set posts = mb.get_posts( args ) %}
{% for post in posts %}
<-- my content goes here -->
{% endfor %}