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.