Comments Count in 2.7
-
Hey Everyone, 2.7 is pretty sweet so far, just ran into a small problem.
I’ve used this handy guide to get better control over styling my comments. https://clarktech.no-ip.com/wordpress/wordpress-27-comment-callback-function
I want to implement a comment count (1, 2, 3, 4, etc) for each new comment that will be displayed next to it. I’ve used these functions that have worked for me before:
Before the loop
<?php $cmntCnt = 1; ?>
Within the loop
<?php echo($cmntCnt++); ?>
Now that my comment styling is in a function, they don’t seem to work anymore. They only output “1” for each comment.
Any ideas?
Hope that made sense.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Comments Count in 2.7’ is closed to new replies.