[wp-trac] [WordPress Trac] #60708: REST page 2 item 0 === page 1 item 99 when requesting 100 posts from a post type

WordPress Trac noreply at wordpress.org
Wed Mar 6 16:39:23 UTC 2024


#60708: REST page 2 item 0 === page 1 item 99 when requesting 100 posts from a post
type
--------------------------+-----------------------------
 Reporter:  vialars       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  6.4.3
 Severity:  major         |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 in our case of a custom WP post type default REST API call

 page 2 item 0 === page 1 item 99

 when requesting 100 items per page.

 (as of writing this.)


 Demo:

 https://deananddavid.com/wp-
 json/wp/v2/catering_article?lang=de&orderby=menu_order&order=asc&_fields=acf,catering_category,featured_media,id,title&per_page=100&page=1

 https://deananddavid.com/wp-
 json/wp/v2/catering_article?lang=de&orderby=menu_order&order=asc&_fields=acf,catering_category,featured_media,id,title&per_page=100&page=2


 This is no issue when requesting 99 items per page.

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


More information about the wp-trac mailing list