[wp-trac] [WordPress Trac] #59809: Inconsistent "ITEMS PER PAGE" across pagination pages in WP 6.4 and TT4 for the Query Loop

WordPress Trac noreply at wordpress.org
Mon Nov 6 02:11:45 UTC 2023


#59809: Inconsistent "ITEMS PER PAGE" across pagination pages in WP 6.4 and TT4 for
the Query Loop
---------------------------+-----------------------------
 Reporter:  rajinsharwar   |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 There is an inconsistent behavior of the "ITEMS PER PAGE" across
 pagination pages in WP 6.4 and TT4 the Query Loop block.

 Here is how to replicate it:
 1. Ensure you have WP 6.4-RC3 installed, and the TT4 activated.
 2. Ensure you have at least 10 blog posts.
 3. Make a certain blog post sticky.
 4. Navigate under Appearance > Editor, and edit any template.
 5. In the template, add the Query Loop block, and choose a pattern that
 has pagination on it.
 6. Disable the "Inherit query from template", and ensure the "STICKY
 POSTS" is set to include. Also, ensure the "ORDER BY" is set to "Newest to
 Oldest"
 7. From the "Display Settings" of the block, set the "ITEMS PER PAGE" to
 2.
 8. Save the changes, and come back to the frontend.
 9. You will see that it shows 3 posts in the Query Loop, which is expected
 as it includes the Sticky post as well.
 10. Now, navigate to the 2nd page using the pagination. See, now you will
 see 2 posts. This includes the STICKY post and another post.
 11. Now, navigate to the 3rd page using the pagination. See, now you again
 have 3 posts showing, which is expected.

 This is causing an issue with the 2nd page of the pagination, which is
 only showing 2 posts, including the Sticky one. But all the other
 pagination pages are showing fine, with 3 posts each, including the Sticky
 one. This is occurring in WP 6.4 and with the TT4 theme.

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


More information about the wp-trac mailing list