Skip to content
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

Sticky posts are not showing up in the right order in a category while using Query Loop block #85827

Open
Robertght opened this issue Dec 2, 2023 · 3 comments
Labels
[Block] Query Loop Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature Group] Appearance & Themes Features related to the appearance of sites. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Low Address when resources are available. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@Robertght
Copy link

Quick summary

Sticky posts are not showing up in the right order when in a category while a Query Loop block.

Steps to reproduce

  1. Create a category
  2. Assign 3 posts to it
  3. Make the oldest one sticky.
  4. Create a page and add the Query Loop block
  5. Set it to display only the category you create in step 1.
  6. Check the results.

What you expected to happen

The order should be:

Post 1 - sticky
Post 3
Post 2

What actually happened

The order remained the same, the sticky post being ignored so the order is:

Post 3
Post 2
Post 1

Browser

Google Chrome/Chromium

Context

7355681-zen

Platform (Simple, Atomic, or both?)

No response

Other notes

If I saw this correct, it also happens in the category page, not just the Query loop block.

Found a few other reports:

#71294
#61785

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

Workaround: Use the Blog Posts block instead or label the posts as "sticky" as a separate category.

@Robertght Robertght added [Type] Bug Needs triage Ticket needs to be triaged [Feature Group] Appearance & Themes Features related to the appearance of sites. labels Dec 2, 2023
@github-actions github-actions bot added the [Pri] TBD Review and assign an appropriate [Pri] label as soon as possible. label Dec 2, 2023
Copy link

github-actions bot commented Dec 2, 2023

Support References

This comment is automatically generated. Please do not edit it.

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Dec 2, 2023
@liviopv
Copy link

liviopv commented Dec 28, 2023

📌 REPRODUCTION RESULTS

  • Tested on Simple – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO
After creating a category with 3 posts, one of them sticky, and using a Query Block to display, the block doesn't respect the custom order when filtered by a category:

CleanShot 2023-12-28 at 10 57 30@2x

This is not theme specific, as the problem persisted after switching to TT4.

It's been reported in core already WordPress/gutenberg#51936

📌 ACTIONS

  • Triaged
  • Updated the title

@liviopv liviopv changed the title Hemmingway Rewritten: Sticky posts are not showing up in the right order in a cateogry while using Query Loop block Sticky posts are not showing up in the right order in a cateogry while using Query Loop block Dec 28, 2023
@liviopv liviopv transferred this issue from Automattic/themes Dec 28, 2023
@liviopv liviopv added [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Low Address when resources are available. [Block] Query Loop [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. Triaged To be used when issues have been triaged. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. and removed Needs triage Ticket needs to be triaged [Pri] TBD Review and assign an appropriate [Pri] label as soon as possible. labels Dec 28, 2023
@matticbot matticbot moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Dec 28, 2023
@mrfoxtalbot mrfoxtalbot moved this to To triage in Dotcom Core Fix Needed Sep 2, 2024
@SiR-DanieL
Copy link
Member

This seems to be an issue also with the Blog Posts block. I've created 2 posts, the oldest one Sticky, but it does not show on top. Reported in #8804038-zen

@jartes jartes changed the title Sticky posts are not showing up in the right order in a cateogry while using Query Loop block Sticky posts are not showing up in the right order in a category while using Query Loop block Oct 31, 2024
@inaikem inaikem moved this from Triaged to Needs Core/3rd Party Fix in Automattic Prioritization: The One Board ™ Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature Group] Appearance & Themes Features related to the appearance of sites. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Low Address when resources are available. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. [Type] Bug
Projects
Status: Needs Core/3rd Party Fix
Development

No branches or pull requests

3 participants