Title: Prepend query loop block
Last modified: August 3, 2023

---

# Prepend query loop block

 *  Resolved [eric3d](https://wordpress.org/support/users/eric3d/)
 * (@eric3d)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/prepend-query-loop-block/)
 * 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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/prepend-query-loop-block/#post-16945652)
 * Hey [@eric3d](https://wordpress.org/support/users/eric3d/) – that kind of thing
   sounds like a great idea.
 * There’s nothing like that at the moment – but it sounds like something that would
   be excellent to suggest as a Feature Request on Github (where the development
   of the plugin is handled.
 * [You could do that at this link here](https://github.com/WordPress/gutenberg/issues/new?assignees=&labels=&projects=&template=Feature_request.md).
 *  Thread Starter [eric3d](https://wordpress.org/support/users/eric3d/)
 * (@eric3d)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/prepend-query-loop-block/#post-16945719)
 * Done: [https://github.com/WordPress/gutenberg/issues/53316](https://github.com/WordPress/gutenberg/issues/53316)
 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/prepend-query-loop-block/#post-16945988)
 * Fantastic – thanks again for the suggestion. I’ll mark this thread as resolved
   now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Prepend query loop block’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jordesign](https://wordpress.org/support/users/jordesign/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/prepend-query-loop-block/#post-16945988)
 * Status: resolved