Support » Fixing WordPress » comments_popup_link in single.php not appearing
9 years, 3 months ago
My comment link is not showing up on my single.php page. It is the same has on all other pages and they all work fine. I have <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> on each page. Anybody know why this is?
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
8 years, 10 months ago
Actually, while investigating something else, I found this comment on the source of the comments_popup_link function:
* comments_popup_link() - Displays the link to the comments popup window for the current post ID.
* Is not meant to be displayed on single posts and pages. Should be used on the lists of posts
So it looks like it must be used outside the single post view. And you should not need it. Maybe looking at single.php in some themes would help?
8 years, 3 months ago
Anybody can solve this problem?