• Resolved ohsnapjulie

    (@ohsnapjulie)


    Hi. I realized when my site went live that the comments are not appearing when I click on “no comments” or “1 comment” etc. at the bottom of each post. It just takes me to another blog page that also looks a little weird (the date is not aligned correctly). My theme seems to not be using comments.php. Does anyone have any idea why this would happen or how to fix the problem?

    Website: https://www.partyondesigns.com/

    Thanks,

Viewing 15 replies - 1 through 15 (of 17 total)
  • This appears to be a custom theme. Have you tried asking the theme’s developer?

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    I made the theme. I meant to say the site I created, not my site earlier…any advice?

    If it is your own theme, why don’t you just add a comments.php template file?

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    “My theme seems to not be using comments.php. Does anyone have any idea why this would happen or how to fix the problem?”

    As stated above, I have a comments.php file. The problem is that my theme is not reading it. If you need any of the code, just let me know.

    Does your theme’s single.php template use <?php comments_template();?>?

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    nope, it has this php code instead:
    <?php comments_popup_link(‘No Comments ?’, ‘1 Comment ?’, ‘% Comments ?’); ?>

    I tried changing it to the one you suggested above, just to see if it would work and it caused an error 500. Not sure if it was related to that or if it had something to do with the hosting company, but it happened right after I did that. The error is solved now but the comments still don’t work. Any help is greatly appreciated.

    What version of WordPress are you using?

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    I have version 3.3.1, which I believe is the latest version.

    It is the current version – which means that <?php comments_template();?> should work without any problems. Check that you are adding it correctly.

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    I should just add it exactly where the code is I sent you? I just want to make sure I have everything right. Do I need to change the code on index.php as well?

    Thanks for your help.

    It should be added after the Loop in single.php only.

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    Well it did not cause and error, but it still isn’t working…. Here is the entire section and how I added it, let me know if I did something wrong.

    <div class="comments">
    		<span class="cloud"><?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?><?php comments_template();?></span>
    		</div>
            </div> <div class="divider"></div>
    	<?php endwhile; ?>

    [Please post code or markup snippets between backticks or use the code button.]

    Thanks.

    I don’t see <?php comments_template();?> in there.

    Thread Starter ohsnapjulie

    (@ohsnapjulie)

    Its there. It is currently located right after <?php comments_popup_link(‘No Comments ?’, ‘1 Comment ?’, ‘% Comments ?’); ?>

    Please let me know if I put the loop in the wrong place. Thanks again.

    No – that’s inside the Loop. You need to add it after the Loop.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Comments arn't Appearing in Blog’ is closed to new replies.