Answered
0
0

Hello
Is there a query code to display the comments of a particular post?

  • You must to post comments
Best Answer
1
0

Hello dear,

Yes, you can display via the following code:

<?php
$comments = get_comments('post_id=16&order=DESC&number=15');
foreach($comments as $comm) :
$text = $comm->comment_content;
echo $text;
endforeach;
?>
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website

 

Use of this Site is subject to express terms of use. By using this site, you signify that you agree to be bound by these