[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 05:25:55 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         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by peterwilsoncc):

 @rajinsharwar Thanks for the report.

 I am having trouble reproducing the issue, these are the steps I followed:

 1. Empty site and create some posts via wp-cli commands

 {{{
 wp site empty
 wp post generate
 ## Make sure post ID matches number
 for i in {1..100}; do wp post update $i --post_title="Post $i"; done;
 }}}

 2. Activate TT4
 3. Edit home page, remove all sections except query block
 4. Edit query block
   - turn off inherit setting
   - post type: posts
   - order: newest to oldest
   - force page reload: off
   - items per page: 10
   - offset: 0
   - max page to show: 0
 5. Save site, exit site editor
 6. Set a post on the third page to be sticky
 7. Visit front end of site:
   - page one: 11 posts shown (ten plus the sticky)
   - page two: 11 posts shown (ten plus the sticky)
   - page three: 10 posts shown (sticky at top, it's removed from it's
 normal position)
   - page four: 11 posts shown (ten plus the sticky)

 Are you able to provide any steps that I am missing? Feel free to upload
 screen shots if that will be easier.

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


More information about the wp-trac mailing list