-
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 Block: Sticky posts do not stay at the top when used in template #61785
Comments
Thanks for submitting this bug report @thekingsprojects! I was able to reproduce this on a test site with several themes activated. I've added this report to the HE Cross-Reference Watchlist since there is a related issue in the Gutenberg Repo: WordPress/gutenberg#38979 |
Another report: 4839596-zd-woothemes Edit: Looks like this is a different report for the same user site. |
Another report: 5183244-zen Gave them the two workarounds suggested above. |
Another report of this. Shared option 1 workaround
|
Unfortunately the workaround option 1 is not usable since the sticky posts option is hidden when the query is inherit. |
Support References This comment is automatically generated. Please do not edit it.
|
Encountered this issue here: 7448744-zen |
Its unclear if this was fixed in core or not, based on WordPress/gutenberg#38979 |
sticky.post.query.loop.movDefinitely fixed :) Closing this out both due to no further reports and inability to replicate. |
Question for @cuemarie CC @tashabishop02 & @andrewspittle Do we need reach back out to all the above "attached" customer reports in Zendesk (etc.) to close the loop after a fix? Or, how would we handle getting the word out if someone had this issue? Reading the comments on this ticket, there are a few that say, "Please update the customer when this is fixed." But, it's from 2022... so maybe we missed the window of opportunity. |
I'll defer to @tashabishop02 here on the decision. In an ideal world I think we follow up with people. But, as you note, that may require a more timely fix than we arrived at here. |
Quick summary
When using the Query Loop block to show posts as part of an FSE template (e.g., on the theme's "Index" template), any sticky posts appear in the normal post flow, rather than at the top/front of the post list.
This does not seem to happen when a Query Loop block is used within the content of a page; I've only been able to replicate it in a template so far.
Steps to reproduce
What you expected to happen
Any sticky posts should appear above other, more recent posts.
What actually happened
Posts appear in the normal newest-to-oldest sort order, ignoring any "sticky" settings.
Context
Customer report here: 4839669-zen
Confirmed by testing on my own Atomic site.
Possibly related to this issue? In this case, however, both the editor and the live site are ignoring the sticky setting, rather than the live site still functioning correctly.
Simple, Atomic or both?
No response
Theme-specific issue?
No response
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
No response
Available workarounds?
Yes, easy to implement
Workaround details
Option 1: Add a second Query Loop above the first one. Set the "top" query loop to show Only sticky posts, while the "bottom" one Excludes sticky posts.
Option 2 (not applicable to every case, but was offered to this user): Write the desired text (in this case, an introduction) directly into the template, above the Query Loop, instead of relying on a sticky post.
The text was updated successfully, but these errors were encountered: