- This topic has 4 replies, 3 voices, and was last updated 9 years, 6 months ago by .
Trying to get comments for a post, but I can’t get it to work. Here’s the code:
$comments = get_comments('$post_id');
foreach($comments as $comment) : ?>
<?php echo ($comment->comment_content); ?>
<?php endforeach; ?>
- You must be logged in to reply to this topic.