Subscribe.Enter your email:
To display the total number of comments, Trackbacks, and Pingbacks for a post, use comments_popup_link or comments_number tags.
These tag must be within The Loop.
Use comments_popup_link. Will not work if in a page or single post.
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
Use comments_number.
<?php comments_number('No Comments', 'One Comment', '% Comments'); ?>
Enter your email address:
Name (required)
Mail (will not be published) (required)
Website
Notify me of follow up comments via e-mail.
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
How to display the number of comments in WordPress
Tuesday, May 12th, 2009To display the total number of comments, Trackbacks, and Pingbacks for a post, use comments_popup_link or comments_number tags.
These tag must be within The Loop.
In index.php or archive.php
Use comments_popup_link. Will not work if in a page or single post.
In single.php or page.php
Use comments_number.
New Acronis True Image Home 2010 is the most reliable and easy in use backup solution. Now with online backup option!
15% Discount Code: FMAATIH2010
What else?
Like this article? Share it