• First off I am quite new to WordPress and blogging. I have been developing a theme for WordPress and have encountered a problem… On the “main index” template file I put “<?php comments_popup_link(__(‘0 Comments’), __(‘1 Comment’), __(‘% Comments’)); ?>” Just underneath the blog title… looks how I want it and works.

    When I go to the permlink of the blog, it doesn’t display that comment count… is there any way to fix this? If it helps the site is leokent.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s because it’s a link to comments of an individual post; and does not display when on a single post page. To display the comment number on a single post page, use this in your template:

    <?php comments_number(__(0 Comments'), __('1 Comment'), __('% Comments')); ?>

    Thread Starter leokent

    (@leokent)

    OK then link that to the permlink + #comments…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments Page and comments_popup_link()’ is closed to new replies.