displaying numbers next to every comment
-
I keep getting a syntax error on this code but can’t figure out why… any thoughts?
$x= get_comments_number(); for ($i=1; $i<$x; $i++) { echo "<div class='comment_number'>". $i ."</div>" . "<div class='commentlist'>." wp_list_comments(array('style' => 'div')) ."</div>"; } ?>
Basically, I just want to get the number of comments for each post and then use that number to create a loop to display a number for each post.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘displaying numbers next to every comment’ is closed to new replies.