Title: is_main_query function
Last modified: February 10, 2023

---

# is_main_query function

 *  [Mike Zielonka](https://wordpress.org/support/users/mikezielonka/)
 * (@mikezielonka)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/is_main_query-function/)
 * Hi All!
 * I’m running into an issue with the Plugin WP Recipe Maker and how it insert’s
   it’s snippet buttons into a post.
 * It uses [is_main_query function](https://developer.wordpress.org/reference/functions/is_main_query/)
   to do so and there should only be one per page.
 * When I use the widget to add reusable blocks to a widget area, in this case the
   footer, it’s accidentally getting WPRM’s snippet added twice.
 * I have them hidden right now but here’s an example: [https://capture.dropbox.com/PTEkSV2unVyyNX3y](https://capture.dropbox.com/PTEkSV2unVyyNX3y)
 * [https://www.blondelish.com/recipes/easy-macaroni-salad-recipe/](https://www.blondelish.com/recipes/easy-macaroni-salad-recipe/)

The topic ‘is_main_query function’ is closed to new replies.

 * ![](https://ps.w.org/reusable-blocks-extended/assets/icon-256x256.png?rev=2157787)
 * [Reusable Blocks Extended](https://wordpress.org/plugins/reusable-blocks-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reusable-blocks-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reusable-blocks-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/reusable-blocks-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reusable-blocks-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reusable-blocks-extended/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mike Zielonka](https://wordpress.org/support/users/mikezielonka/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/is_main_query-function/)
 * Status: not resolved