Title: Reusable block inside query loop
Last modified: September 7, 2022

---

# Reusable block inside query loop

 *  Resolved [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/)
 * Hi.
 * I’ve tried to create a reusable template inside a query loop. The only way I 
   could find that seems to work is to group the items to be displayed in the level
   under the post template, and turn that group into a reusable block.
 * However, the moment I do that in the editor, my server grinds to a halt as long
   as that page or any preview of that page is open.
 * Is there a way to do this that works?
 * Thanks!

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

 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15987742)
 * Because you create too big load on server (because query loop is also working
   as container for reusable blocks, so, you create something like reusable inside
   reusable and multiplied by number of posts). Reusable blocks should not be used
   in query loop
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15988491)
 * That’s too bad. I’ve got the same design used in several dozen places. Was hoping
   to stick it in a template. Thanks again for the prompt help! 🙂
 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15988566)
 * It’s not clear why you can’t simply copy code from your reusable template and
   paste in query loop. What is the reason to use reusable inside query? Can you
   write me practical examples?
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15988710)
 * I’ve got links to lessons in a query loop, where each lesson has a format with
   text, image, lesson length. That query loop is used on dozens of pages that list
   different lessons in different ways, and each page has at least two of the query
   loops.
 * The simple solution is to have one page that is standardized for listing lessons.
   I’m going to see if I can think of a way to do that.
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15989729)
 * Hi again.
 * I simplified things into one page and:
    – Set all the queries on the page to “
   Inherit query from template” – Wrapped the contents into a container and made
   it a reusable template – Set “Overwrite Archive by this template” on by taxonomy
   of category – Set it to include a category to test on – Went to that category
   page
 * From your video it looks like this should just work when I got to the category,
   but it doesn’t. It is loading the reusable template. The queries show no records.
   It also shows some default header with the style missing, and powered by WordPress
   in the footer. Don’t know where that’s coming from. It doesn’t seem to be using
   the blockpress archive or any other blockpress template
 * The only thing thad is different than the tutorial that I can think of is that
   the category is a PODS custom post type.
 * Any idea what I’m doing wrong?
 * Much appreciating your help!
 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15990325)
 * When you make reusable block from query loop, you turn it into new post. So, 
   reusable post will be inherited and not current. This scenario will not work.
   You need to unwrap from reusable before you use query loop on page
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15991850)
 * I don’t understand what you mean unfortunately. Can I pay you to take a look?
   I’d need to send you the details privately.
 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15991928)
 * One more time. You must convert reusable block to regular blocks, otherwise, 
   query loop will not detect archives
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15992065)
 * I’m only trying to overwrite the category like was done in the tutorial. I’m 
   not trying to insert reusable blocks into another page anymore.
 * I tried again. Went to reusable templates, add new, “Lesson Category Replace”.
   Created one query loop with, “Inherit query from template”, and turned on template
   replacement as before.
 * Went to the category and got the same result shared above.
 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15992318)
 * Please send screenshots of what you are doing and link on page
 *  Thread Starter [johnreel](https://wordpress.org/support/users/johnreel/)
 * (@johnreel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15992363)
 * Thanks. Where can I send those privately?
 *  Plugin Author [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * (@wpsoul)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15992736)
 * You can contact privately from Greenshift – contact us in your admin panel

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

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

 * ![](https://ps.w.org/greenshift-animation-and-page-builder-blocks/assets/icon-
   256x256.gif?rev=2773637)
 * [Greenshift - animation and page builder blocks](https://wordpress.org/plugins/greenshift-animation-and-page-builder-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/greenshift-animation-and-page-builder-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/greenshift-animation-and-page-builder-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/greenshift-animation-and-page-builder-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/greenshift-animation-and-page-builder-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/greenshift-animation-and-page-builder-blocks/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [wpsoul](https://wordpress.org/support/users/wpsoul/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/reusable-block-inside-query-loop/#post-15992736)
 * Status: resolved