[wp-trac] [WordPress Trac] #36701: Pages parameter for get_comments
WordPress Trac
noreply at wordpress.org
Thu Apr 28 14:36:12 UTC 2016
#36701: Pages parameter for get_comments
-------------------------+-----------------------------
Reporter: mireillesan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.5.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Would it also be possible to add a $paged parameter to get_comments?
That way we can have more control over the pagination.
For example:
Reviews are usually just comments with an extra meta_key.
To display only the reviews, we can easily filter them inside
get_comments.
There's one issue, the pagination (paginate_comments_links) grabs total
comment count and ignoring the fact that get_comments only displays
selected comments based on meta_key.
Hope it makes sense what I wrote, if not, just let me know.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36701>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list