[wp-trac] [WordPress Trac] #55124: Changing post order leads to bug with "Post Content" block

WordPress Trac noreply at wordpress.org
Wed Feb 9 09:42:06 UTC 2022


#55124: Changing post order leads to bug with "Post Content" block
---------------------------+-----------------------------
 Reporter:  archikaroton   |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  5.9
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 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!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55124>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list