Viewing 6 replies - 1 through 6 (of 6 total)
  • The Allow Comments checkbox in Settings > Discussion turns on/off the ability for visitors to write comments on all new posts. For older posts, you’ll need to edit them in bulk from Dashboard > Posts. You can test to make sure that comments are turned on for a post by clicking Screen Options at the top right of the post page. Make sure that Discussion and Comments are checked, and then scroll down to the bottom of the page and see if Allow Comments is checked. If it is, maybe clear the cache so you’re not looking at old copies of your posts.

    You also have to be using a theme that includes the comments form and comments template in the blog post page (usually single.php); not all do. If you haven’t already, you could take a look at your theme’s single.php and do a search for comment_form and comments_template.

    If you view your site with a different theme (like TwentyFifteen, for example), do the comments show up?

    Thread Starter Oliverian

    (@oliverian)

    Yes, when I view the blog through a different template I can see the comments there. I did look in the single.php, but I don’t see what to change (yup, I am a novice):

    <?php get_header() ?>
    <div id=”slider”>
    <?php
    $attachment_id = get_post_thumbnail_id(214);
    $attachment = get_post($attachment_id);
    ?>
    <img src=”<?php echo wp_get_attachment_url($attachment_id) ?>” alt=”” <?php echo “data-caption=\”#news\””; ?> />
    <span class=’orbit-caption’ id=’news’>News & Events</span>
    </div>
    <div class=”spacer”></div>
    <div id=”content”>
    <?php get_sidebar() ?>
    <div id=”newsContent” class=”right”>
    <?php
    while(have_posts()) : the_post();?>
    <?php if(has_post_thumbnail()) {
    $default_attr = array(
    ‘src’ => $src,
    ‘class’ => “attachment-thumbnail”,
    );
    echo the_post_thumbnail($default_attr); } else { echo “<img class=’thumbnail’ src='”.get_bloginfo(‘template_url’).”/images/thumb.gif’ />”; } ?>
    <div class=”post single” id=”post-<?php the_ID() ?>”>
    <h2 class=”entry-title”><?php the_title() ?></h2>
    <div class=”date”><?php echo the_date(“m.d.Y”); edit_post_link( __( ‘Edit’ ), ” – <span class=\”edit-link\”>”, “</span>” ) ?></div>
    <div class=”entry-content”>
    <?php the_content() ?>
    </div>

    <?php endwhile; // end of the loop. ?>
    </div><!– .post –>
    <div class=”clear”></div>
    <div id=”nav-below” class=”navigation”>
    <div class=”align-left”><?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>«</span> %title’ ) ?></div>
    <div class=”align-right”><?php next_post_link( ‘%link’, ‘%title <span class=”meta-nav”>»</span>’ ) ?></div>
    </div>
    <div class=”clear”></div>
    <?php// comments_template() ?>
    </div><!– /newsContent –>
    <div class=”clear”></div>
    </div><!– #content –>

    Okay, it looks like your comments code is “commented out,” so that’s keeping the comments form from displaying. Try removing the the two forward slashes right before comments_template – 4th line up from the end of the file. (Make sure to keep the space between php and comments_template.) Like this:

    <?php comments_template() ?>

    After you clear your cache, do you see a comments form on your posts pages?

    Hi, just checking in to see if you got your comments issue wrangled?

    Thread Starter Oliverian

    (@oliverian)

    That was it, thank you! Now I just need to figure out how to make them visually attractive.

    Do you if I can make comments enabled on old posts?

    Oh good, I’m glad you got it wrangled! You can enable comments on older posts using the Bulk Actions feature. From the Dashboard, select Posts. Select all posts by checking the checkbox in the header (or footer) of the posts listing. Click the Bulk Actions dropdown, select Edit, then click the Apply button. You’ll see a bunch of choices. In the 3rd column look for Comments. Select Allow from the dropdown right next to Comments, then click Update.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to allow comments’ is closed to new replies.