-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Block: not rendering on front-end of site in page content #28334
Comments
Hey @ianstewart - The problem here lies to the Can you try setting the above mentioned option to false, so as to close this issue? I know this is confusing and easy to miss and I've made some explorations on detecting the FSE and page/post context, but needs more thinking and work on context detection.. |
There is also this question of whether the query detected from the URL should only trigger filtering when it's one of the pages that display a list of posts. In the case of the single page type, it could use all possible posts by default — just an idea to explore. Finding sensible defaults is very important here. I would like to hear thoughts from more people building FSE themes: @scruffian, @aristath, @carolinan. |
I agree with that perception, it would be what I expected as a theme developer |
This caught me out too. I think that when "inherit query from URL" is turned on, the other options should be disabled. I also wonder if it should move to the block toolbar, so that its more obvious... |
The problem here is the empty Currently debugging this to see if there's an easy way to define the post-type 👍 |
PR in #28351 |
I'd expect the exact opposite... If I add a query block and set it to inherit the global query, then I expect it to inherit the global query. When viewing a single post, the global query contains that single post/page, so that's what I'd expect it to show by default. |
Thank you for sharing this use case. I'm perfectly fine with preserving the same behavior as long as it's predictable and works correctly. That makes this issue a bug then. |
The query block appears to fail to render on the front-end of a site in page content as seen in the screenshot below, with the query block in page content on the left, and the published front-end result on the right.
The text was updated successfully, but these errors were encountered: