[wp-trac] [WordPress Trac] #38268: WP_Comment_Query Pagination

WordPress Trac noreply at wordpress.org
Mon Oct 17 12:32:51 UTC 2016


#38268: WP_Comment_Query Pagination
-------------------------------+------------------------------
 Reporter:  wordpresssites     |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Comments           |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by wordpresssites):

 Yes and have done so however is there any reason this can't be built into
 WordPress? It's a fair amount of work and understanding to be able to do
 this yet there's pagination functions built into WordPress for posts and
 pages as well as single post comments. Why include functions like
 WP_Comment_Query and get_comments without including a built in page nav
 function?


 Replying to [comment:1 rachelbaker]:
 > @wordpresssites Howdy! `WP_Comment_Query` does have the `number` and
 `offset` parameters, and the `$max_num_pages` property which should give
 you what you need to build custom pagination functions.  Would that fit
 your use case?

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


More information about the wp-trac mailing list