• Resolved snapaholics

    (@snapaholics)


    hi it was suggested that i hve this problem that is preventing a comments form from showin up when i click ‘add comment” on myblog keepmecurly.com

    You don’t have a comment form in your theme’s single.php template file. Try adding <?php comments_template(); ?> just before the end of the Loop in that file.

    can someone please tell me how to add that? where EXACTLY do i put it in the code?? when i read about the LOOP it states that the code for the ending of it contains the word “endwhile” and my code on the single.php page has no word “endwhile” in it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • here’s how the comments template fits in at the end of my single.php

    <?php comments_template(); ?>
    	<?php endwhile; else: ?>
    
    		<h1 class="title">Not Found</h1>
    		<p>I'm Sorry,  YOU are looking for something that ISN'T HERE. </p>
    
    <?php endif; ?>
    
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    if you don’t have a single resembling that, plop your single.php code in the pastebin and report the link here so someone can take a look…

    https://wordpress.pastebin.com/

    Thread Starter snapaholics

    (@snapaholics)

    here’s the end of my single.php

    <!– Post #<?php the_ID(); ?> –>

    <hr class=”post-sep” />

    <?php comments_template(); ?>

    <div class=”post-nav”>

    <p class=”prevpage”><?php previous_post_link(‘%link’, __(‘« %title’)); ?></p>
    <p class=”nextpage”><?php next_post_link(‘%link’, __(‘%title »’)); ?></p>

    </div>

    </div>
    <!– #content –>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Moderator James Huff

    (@macmanx)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding code to fix my “no comments” issue..HELP’ is closed to new replies.