Make WordPress Core

Opened 20 months ago

Last modified 20 months ago

#55124 new defect (bug)

Twenty Twenty-Two: Changing post order leads to bug with "Post Content" block

Reported by: archikaroton's profile archikaroton Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

I'm using WordPress 5.9 with the Twenty Twenty-Two theme.

In the Editor, I'm modifying a custom category template (e.g. category-test.php). Within the "Query Loop" block I insert a "Post Content" block. I then change the sorting order of the posts by using the block settings, deactivating "Inherit default layout" and changing "Order by" to "Oldest to newest".

Now, when viewing the category page, for the first post it always shows the "Post Content" of the last post. This happens with any category and any number of posts I've tried so far. It also happens when I try to change the sorting order via code in functions.php.

Have a nice day!

Attachments (1)

Screenshot_2022-02-09.png (149.5 KB) - added by archikaroton 20 months ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
20 months ago

  • Summary changed from Changing post order leads to bug with "Post Content" block to Twenty Twenty-Two: Changing post order leads to bug with "Post Content" block
Note: See TracTickets for help on using tickets.