Answer the question
In order to leave comments, you need to log in
Make comments load on click on wordpress button?
Greetings!
Unable to load comments on button click.
That is, you need to display 5 comments, and the download button, by clicking on which we display 5 more, etc.
I receive comments like this: (this is already when we clicked to load more comments)
<?php
$args_list = array(
'callback' => 'mytheme_comment',
);
$args = array(
'order' => 'ASC',
'offset' => $offset,
'number' => $items,
'post_id' => $post_id,
);
$comments = get_comments($args);
wp_list_comments($args_list, $comments);
?>
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