Plugin Author
wpsoul
(@wpsoul)
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
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
(@wpsoul)
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?
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.
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
(@wpsoul)
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
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
(@wpsoul)
One more time. You must convert reusable block to regular blocks, otherwise, query loop will not detect archives
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
(@wpsoul)
Please send screenshots of what you are doing and link on page
Thanks. Where can I send those privately?
Plugin Author
wpsoul
(@wpsoul)
You can contact privately from Greenshift – contact us in your admin panel