close
Skip to content

Query Loop: It doesn't show sticky posts at the top when the query type is the default in the editor. #68570

@iamtakashi

Description

@iamtakashi

Description

With the default query type, a sticky post doesn't appear at the top of the blog stream in the editor. However, it does appear at the top on the front of the site, creating a discrepancy between the editor and the front of the site.

Step-by-step reproduction instructions

  1. Have at least a sticky post on the blog
  2. Open the template using a query loop block (index, archive, etc.) in the editor.
  3. Notice the sticky post isn't at the top.
  4. Open the front of the site and see the sticky post at the top.

Screenshots, screen recording, code snippet

Editor Front of the site
Image Image

Environment info

WP 6.7.1
Gutenberg trunk
Chrome

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Block] Query LoopAffects the Query Loop Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] WP Core TicketRequires an upstream change from WordPress. Core Trac ticket should be linked.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions