-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Loop does not display on site if Inherit query from template is enabled #69221
Comments
📌 SCRUBBING : RESULT
📌 FINDINGS/SCREENSHOTS/VIDEO
📌 ACTIONS
📌 Message to Author/Quality Squad
|
I've also encountered this issue since Gutenberg v13.7 above. The root cause might probably be use_global_query from WordPress/gutenberg#32514. But I'm not sure why it makes the posts become empty if inherit query is enabled |
Another one at zen-5774388 |
Support References This comment is automatically generated. Please do not edit it.
|
Another report: #5820182-zen |
Another one on 42594789-hc |
Another report: 6550825-zd-woothemes |
@cuemarie Do you think we might be able to get an assignee for this? I think it's pretty unfortunate that Query Loops just don't work at all when used by a page unless you disable |
Hey @masperber ! Looks like the underlying issue here is in Gutenberg Core, so I'm not sure if this is something that can be addressed just within WordPress.com. Looping in @liviopv though, who might be able to help give this request (as well as the Core counterpart, here: WordPress/gutenberg#30369 ) more support in conversations between .com and .org. Your thoughts or help escalating this would be much appreciated! Thanks for taking a look! 📌 ACTIONS
|
Another report: 6776963-zen |
Noting that this is related to adding a query loop to a page rather than a template with a fix in progress here: WordPress/gutenberg#65067 |
Quick summary
When using a Query Loop Block, the Query Loop is hidden from the live site if the
Inherit query from template
option is selected from the Block settings.Steps to reproduce
Inherit query from template
option enabledWhat you expected to happen
The Query Loop should display posts as it does in the editor.
What actually happened
The Query Loop does not appear on the live site or preview at all.
Context
Customer report 37468979-hc
Confirmed on my test sites, both Atomic and simple, using Classic, Hybrid, and FSE themes.
Platform (Simple, Atomic, or both?)
Simple, Atomic
Theme-specific issue?
No response
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
Yes, difficult to implement
Workaround details
The Query Loop displays if the
Inherit query from template
option is disabled. However, this option is enabled by default, which could lead to considerable user confusion.The text was updated successfully, but these errors were encountered: