[ad_1]
Is there a way to add a block before the query loop that displays only if the query has results? Essentially the reverse of the “no results” block.
The logic: I have a headline and a list of posts selected following a specific criteria. If no posts match the criteria, the headline is displayed with an optional “no posts found” text. Instead, I would prefer not to show the headline at all so that entire section just disappears from the page.
