Support » Themes and Templates » comment link not showing on category pages

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter titanium_geek

    (@titanium_geek)

    <?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('&larr; %link') ?>
        </div>
        <div class="alignright">
          <?php next_post_link('%link &rarr;') ?>
        </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(' — ', __('&laquo; go back'), __('keep looking &raquo;')); ?>
    
             </div>
    
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>
    Thread Starter titanium_geek

    (@titanium_geek)

    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'); ?>

    Thread Starter titanium_geek

    (@titanium_geek)

    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

    Thread Starter titanium_geek

    (@titanium_geek)

    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.