Support » Fixing WordPress » Comment problem

  • Resolved nodell

    (@nodell)


    Hi,

    The past few posts have had a problem and I can’t figure out what caused it. There’s supposed to be an image link in the top right of each post that shows how many comments there are to each post. That, when clicked, goes to a comment box. However, in the past five or so posts, that image isn’t there. It’s still on posts before that, but no new ones. The comments are not disabled and the comment box still shows up on those posts when I have them open to a single-post page.

    I’ve tried to disable any new plug-ins and have looked through the style code and comment php, but I’m just not sure what I might be missing.

    Any ideas?

    http://www.nicoleodell.com

    Thank you so much for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • the theme has a conditional statement in index.php – only to show the comments image if there are comments on the post:

    <?php if($post->comment_count>0) : ?><div class="post_comm"><?php comments_popup_link('0', '1', '%'); ?></div><?php endif; ?>

    to always show the comments image, try and change the code to:

    <div class="post_comm"><?php comments_popup_link('0', '1', '%'); ?></div>

    Thread Starter nodell

    (@nodell)

    Thank you!!! That did it perfectly!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment problem’ is closed to new replies.