• the comments form is missing on this sites blog posts: https://www.whoaga.com. I originally had a comment form on the site’s static pages as well, but I decided to remove them, by commenting out the comments form template tage in the page.php. But even before I did that, the comments form had been mysteriously missing from the single blog post pages. not sure how I lost this element, but would like to get it back without having to reinstall the theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wrightj999

    (@wrightj999)

    here is my single.php:
    <?php
    /**
    * The Template for displaying all single posts.
    *
    * @package WordPress
    * @subpackage TravelBlogger
    * @since TravelBlogger Theme 1.0
    */

    get_header(); ?>

    <div id=”yui-main”>
    <div class=”yui-b”>
    <div id=”content” class=”main-content hfeed rounded”>

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <h1 class=”entry-title”><?php the_title(); ?></h1>

    <div class=”entry-meta”>
    <?php travelblogger_posted_on(); ?>
    </div><!– .entry-meta –>

    <div class=”entry-content”>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘travelblogger’ ), ‘after’ => ‘</div>’ ) ); ?>
    </div><!– .entry-content –>

    <?php if ( get_the_author_meta( ‘description’ ) ) : // If a user has filled out their description, show a bio on their entries ?>
    <div id=”entry-author-info”>
    <div id=”author-avatar”>
    <?php echo get_avatar( get_the_author_meta( ‘user_email’ ), apply_filters( ‘travelblogger_author_bio_avatar_size’, 60 ) ); ?>
    </div><!– #author-avatar –>
    <div id=”author-description”>
    <h2><?php printf( esc_attr__( ‘About %s’, ‘travelblogger’ ), get_the_author() ); ?></h2>
    <?php the_author_meta( ‘description’ ); ?>
    <div id=”author-link”>
    “>
    <?php printf( __( ‘View all posts by %s <span class=”meta-nav”>→</span>’, ‘travelblogger’ ), get_the_author() ); ?>

    </div><!– #author-link –>
    </div><!– #author-description –>
    </div><!– #entry-author-info –>
    <?php endif; ?>

    <div class=”entry-utility”>
    <?php travelblogger_posted_in(); ?>
    <?php edit_post_link( __( ‘Edit’, ‘travelblogger’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </div><!– .entry-utility –>
    </div><!– #post-## –>

    <div class=”nav-outter clearfix”>
    <div id=”nav-below” class=”navigation clearfix”>
    <div class=”nav-previous”><?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . _x( ‘←’, ‘Previous post link’, ‘travelblogger’ ) . ‘</span> %title’ ); ?></div>
    <div class=”nav-next”><?php next_post_link( ‘%link’, ‘%title <span class=”meta-nav”>’ . _x( ‘→’, ‘Next post link’, ‘travelblogger’ ) . ‘</span>’ ); ?></div>
    </div><!– #nav-below –>
    </div><!– .nav-outter –>
    <?php comments_template( ”, true ); ?>

    <?php endwhile; // end of the loop. ?>

    </div><!– /.main-content –>
    <?php get_sidebar(‘secondary’); ?>
    </div><!–yui-b-main–>
    </div><!–yui-main–>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    If the first operator of comments_template() is left blank, it’ll assume you have a template file named comments.php, else it will fall back to an emergency template in wp-includes/theme-compat. I’d look first at comments.php for theme-related issues.

    Alternatively, I’d recommend checking the posts in question and your settings to see if post comments are being disabled by default. It could be your theme is coded to not display any comment section whatsoever if comments are disabled and there are none to display.

    I hope this helps!

    Thread Starter wrightj999

    (@wrightj999)

    hey thanks for responding! I finally got it fixed after updating the theme, messing with my plugins, and changing a custom field adjustment that wordpress SEO was making automatically, that for some reason was causing blog posts to redirect to my home page, and act generally broken. even the comments form and the ability to post videos and images came back!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘comments form missing on blog posts’ is closed to new replies.