Comments link doesn’t work with default code
-
Originally I was using the default theme loop in my own theme and in particular the block below:
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
When using the default theme, I clicked on no comments under the post and it went through to display the post on its own with the comments input form underneath.
When using my theme, I clicked on no comments under the post it went through to display the post alone with no comment input form.
The code in the two themes was identical.
I have added the following code to my theme and now it displays the comments (if there are any) and the input form below.
<?php comments_template(); ?>
My question is why do I need that extra line of code in my theme to show the comments and the comment input form when the default theme does not need that extra line of code?
I know this isn’t what you would call life threatening but it is bugging me…
- The topic ‘Comments link doesn’t work with default code’ is closed to new replies.