Support » Themes and Templates » comment link not showing on category pages
comment link not showing on category pages
Viewing 6 replies - 1 through 6 (of 6 total)
-
<?php get_header(); ?> <div id="content"> <div id="menubar"> <?php include("menubar.php"); ?> </div> <div id="contentleft"> <div class="navigation"> <div class="alignleft"> <?php previous_post_link('← %link') ?> </div> <div class="alignright"> <?php next_post_link('%link →') ?> </div> </div> <br class="clear" /> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <div class="postinfo"> <em>Filed Under Category <?php the_category(', ') ?> by <strong><?php the_author() ?></strong></em> </div> <?php the_content(__('Read more'));?><div style="clear:both;"> </div> <div class="taginfo"> <?php the_time('F j, Y'); ?> | <?php edit_post_link('(Edit)', '', ''); ?> | <?php the_tags('Tags: ', ', ', '<br />'); ?> </div> <!-- <?php trackback_rdf(); ?> --> <h3><b>COMMENTS</b></h3> <?php comments_template(); // Get wp-comments.php template ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?> <?php posts_nav_link(' — ', __('« go back'), __('keep looking »')); ?> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <!-- The main column ends --> <?php get_footer(); ?>
A new wrinkle:
I’ve noticed that on the index page there is no COMMENTS word displayed (instead: “Leave a Comment” etc)but on the category page (example: http://www.creativehedgehog.com/?cat=19) the word COMMENTS is displayed instead.
use this
<?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?>
what’s the “comments_popup_link” mean? Not for a popup window?
Ah. Only for popup window if comment_popup_script() is used.http://codex.wordpress.org/Template_Tags/comments_popup_link
Thanks!
I did it and it worked. 🙂
please resolve the issue
ah sorry, wordpress forums newbie. 🙂 Thanks again!
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘comment link not showing on category pages’ is closed to new replies.
(@titanium_geek)
13 years, 9 months ago
Hi everyone,
my blog is http://www.creativehedgehog.com
I have made my own theme, based on http://simplyblackandwhite.net/2008/08/25/greymonger-theme/ .
My problem: on my index page there is a “leave a comment” or “1 comment/2 comments/etc” link at the bottom of each post. On a category page, this doesn’t appear.
I have made a “category.php” that is identical to index.php
But still the comments don’t appear