<?php comments_popup_link(‘0’, ‘1’, ‘%’); ?> not working
-
Hi there:-
I am trying to implement reader comments. The desired design is that I would get a total number of comments, but as a default the comments are hidden. By clicking on the number of comments, the comments are revealed on the page. I see this design on many blogs including the default and classic themes. So I used the same code I saw in other themes, but it doesn’t seem to work. The function does return the number of comments, but clicking on the link doesn’t hide/show the comments. The comments always appear. I have both a comments.php and a comments-popup.php in my theme.I have now spent 4 hours trying to fix this. I have read docs, forums and compared to other themes to no avail. I am wondering if I need to install a plug-in or do something not-so-obvious to get this to work. Below is a piece of code.
If someone could help, I would appreciate it. Thanks.<div id=”commentStatus”>
<h3 class=”commentsHeading”>Reader comments:
<span class=”commentsCounter”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?><span>
</h3><?php comments_template(); // Get wp-comments.php template ?>
</div><?php endwhile; else: ?>
- The topic ‘<?php comments_popup_link(‘0’, ‘1’, ‘%’); ?> not working’ is closed to new replies.