Answer the question
In order to leave comments, you need to log in
Is it possible to implement ajax pagination of comments using the get_comments function?
Here is an example:
$args = array(
'number' => 5,
'orderby' => 'comment_date',
'order' => 'ASC',
'status' => 'approve',
'post_id' => $page->ID,
'hierarchical' => 'threaded'
);
$comments = get_comments( $args );
foreach ( $comments as $comment ) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question