Open masperber opened 2 years ago
π SCRUBBING : RESULT
π FINDINGS/SCREENSHOTS/VIDEO
AT Example
Simple Example
π ACTIONS
π Message to Author/Quality Squad
In a single page there is no much use in having an inherit Query, but instead a custom one.
In general we need to find a way to detect the context a Query lives (page/archive) and set the inherit option accordingly, but this is not yet implemented.
I've also encountered this issue since Gutenberg v13.7 above. The root cause might probably be use_global_query from https://github.com/WordPress/gutenberg/pull/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 Inherit query from template
, which is on by default. Turning this option off by default, or even better removing it entirely when the block is placed on a page, would be really helpful.
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: https://github.com/WordPress/gutenberg/issues/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: https://github.com/WordPress/gutenberg/pull/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.