let’s say I have posts with hundreds of comments, and that I want to show only the last N comments and then a link to a page read them all. How would I display the last N comments?
Thank you,
Dino.
let’s say I have posts with hundreds of comments, and that I want to show only the last N comments and then a link to a page read them all. How would I display the last N comments?
Thank you,
Dino.
You must be logged in to post a comment.
See.
http://codex.wordpress.org/Function_Reference/get_comments
Set the orderby parameter to your desired value, possible values are.
Refer to the link already provided for info on setting other parameters, and general examples.
Why not just use native functionality for comment pagination?
See Enhanced Comment Display, Settings > Discussion in Codex.