WordPress.org

Ready to get started?Download WordPress

Forums

"Leave Comment" text not showing up. (5 posts)

  1. actionbasic
    Member
    Posted 6 years ago #

    I am trying to enable comments on only one page on my blog. I removed all the comment tags from the "page" template originally as we did not want comments. Now, I am trying to add it back in again from the original file. This is the original code from the theme and it still does not show up.

    [ moderated code pasted at: http://wordpress.pastebin.ca/590690 ]

    Everything shows up but the text for "leave comment." I have enabled everything in wordpress as far as comments go as well. Any help would be great. I'm stumped. Brandon

  2. MichaelH
    Member
    Posted 6 years ago #

    That pastebin highlighted the likely problem--line 17 missing a ;

    Filed Under <?php the_category(', '); ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit Post)', '', ''); ?>
  3. actionbasic
    Member
    Posted 6 years ago #

    Is the code that you pasted the correct code? I inserted it into my page and this is the result:

    Filed Under Uncatagorized | (Edit Post)

    the space there before edit post is where the code for the comments is. It will not show up at all. I am pasting this code right from the Blue Zinfindel theme and then I swapped it with the code above. Nothing.

  4. actionbasic
    Member
    Posted 6 years ago #

    I just passted the code into my index.php with the same results. Here is my code:

    <?php get_header(); ?>
    <link href="/assets/wp-content/themes/blue-zinfandel-enhanced-20/style.css" rel="stylesheet" type="text/css" />

    <div id="content">

    <?php include(TEMPLATEPATH."/l_sidebar.php");?>

    <div id="contentmiddle">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="post">
    <span class="pagetitle">">
    <?php the_title(); ?> | Filed Under <?php the_category(', ') ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit Post)', '', ''); ?>

    </span>
    <small>
    <?php the_time('F jS, Y'); ?>
    </small>
    <div class="entry">
    <?php the_content(); ?>
    </div>
    <p class="postmetadata"> Posted in
    <?php the_category(', '); ?>
    </p>
    </div>
    <?php endwhile; else: ?>
    <p> Sorry, no posts matched your criteria.</p>
    <?php endif; ?>
    </div>

    <?php include(TEMPLATEPATH."/r_sidebar.php");?>

    </div>

    <!-- The main column ends -->

    <?php get_footer(); ?>

    It makes no sense to me. Everything shows up but the link to leave a comment....

    again, using the Blue Zinfindel theme. http://www.detour-mag.com is the site. Thanks all.

  5. actionbasic
    Member
    Posted 6 years ago #

    this is the HTML is generates....it's not even there!!!

    Uncatagorized | </p>

Topic Closed

This topic has been closed to new replies.

About this Topic