reverse comment with number
-
Hello
can someone please tell me that how can i reverse comments include comment number
for the reverse i use this code
————————————————————
<?php $comments = array_reverse($comments, true); ?>
————————————————————
but this code do only reverse comments which i don’t want, how can i reverse my comments with also number of commentshere is my full code
————————————————————
<?php if($comments) : ?>
<?php $i = 0; ?>
<?php $comments = array_reverse($comments, true); ?>
<?php foreach($comments as $comment) : ?>
<?php $i++; ?>
<li id=”comment-<?php comment_ID(); ?>”>————————————————————
hope someone help mesorry for my bad english:)
The topic ‘reverse comment with number’ is closed to new replies.