• Resolved VertigoOne

    (@vertigoone)


    Hi,

    the comments area under my articles do not appear.

    I have allowed comments on post (and in any single post), but it doesn’t work.

    This is the code for the comments (blogolife 1.0):

    <?php
    /**
     * The template for displaying Comments.
     *
     * @package wplook
     * @subpackage BlogoLife
     * @since BlogoLife 1.0
     */
    ?>
    <a name="comments"></a>
    <?php if ( comments_open() ) : ?>
    <div class="comments"><?php if ( post_password_required() ) : ?><p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'wplook' ); ?></p></div>
    <!-- #comments -->
    <?php 	return; 	endif; ?>
    <?php if ( have_comments() ) : ?>
    <header class="page-header"><h2 class="page-title"><?php	printf( _n( 'One Response', '%1$s Responses', get_comments_number(), 'wplook' ),	number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );	?></h2><div class="left-corner"></div></header>
    <ul class="commentlist"><?php	wp_list_comments( array( 'callback' => 'wplook_comment' ) ); ?></ul>
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    <nav id="nav-below">
    	<div class="nav-previous fleft"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'wplook' ) ); ?>	</div>
    	<div class="nav-next fright"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'wplook' ) ); ?></div>
    	<div class="left-corner"></div>
    	<div class="clear"></div>
    </nav>
     <?php endif; ?>
    
    <!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    <?php else : // or, if we don't have comments:
    	if ( ! comments_open() ) :
    ?>
    <!--<p class="nocomments"><?php //we show in metaheader _e( 'Comments are closed.', 'wplook' ); ?></p>-->
    <?php endif; // end ! comments_open() ?>
    <?php endif; // end have_comments() ?>
    <?php wplook_comment_form(  ); ?>
    </div>
    <!-- end #comments -->

    this is the code for the content page

    <?php
    /**
     * The default template for displaying content
     *
     * @package wplook
     * @subpackage BlogoLife
     * @since BlogoLife 1.0
     */
    ?>
    <div class="primary">
    <div id="content">
    			<?php wplook_doctitle(); ?>
    			<?php if ( have_posts() ) : ?>
    			<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<div class="col1 fleft">
    				<div class="postformat">
    					<div class="format-icon"></div>
    					<div class="left-corner"></div>
    				</div>
    			</div>
    			<div class="col2 fright">
    		<header class="entry-header">
    						<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wplook' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1></header>
    		<div class="entry-content">
    			<?php the_content(); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="clear"></div><div class="page-link"><span>' . __( 'Pages:', 'wplook' ) . '</span>', 'after' => '</div>' ) ); ?>
    			<!-- .entry-content -->
    		<div class="clear"></div>
    			<div class="entry-utility">
    			<?php if ( the_category ( '', ', ' ) ) { ?>
    				<div class="category">
    					<b><?php _e('Category:', 'wplook'); ?></b>
    					<?php the_category(', ') ?>
    					<div class="end"></div>
    				</div>
    				<?php } ?>
    				<?php if ( get_the_tag_list( '', ', ' ) ) { ?>
    				<div class="tag">
    					<b><?php _e('Tag:', 'wplook'); ?></b>
    					<?php echo get_the_tag_list('',', ',''); ?>
    					<div class="end"></div>
    				</div>
    				<?php } ?>
    
    			</div>
    		<div class="clear"></div>
    		</div><!-- .entry-content -->
    			<footer class="entry-meta">
    				<div class="date-i fleft"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wplook' ), the_title_attribute( 'echo=0' ) ); ?>" rel="nofollow"><?php wplook_get_date_time();?></a></div>
    				<?php if ( comments_open() ) : ?>
    					<div class="comment-i fleft"><?php comments_popup_link(__('No comments', 'wplook'), __('1 comment', 'wplook'), __('% comments', 'wplook'), 'comments-link', __('Comments off', 'wplook')); ?></div>
    				<?php endif; ?>
    				<div class="author-i fleft"><?php wplook_get_author();?></div>
    				<?php edit_post_link( __( 'Edit', 'wplook' ), '<div class="edit-i fright">', '</div>' ); ?>
    				<div class="clear"></div>
    			</footer>
    		</div>
    		<div class="clear"></div>
    	</article>
    					<?php comments_template( '', true ); ?>
    				<?php endwhile; ?>
    			<?php endif; ?>
    </div><!-- #content -->
    </div><!-- #primary -->
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the comments area under my articles do not appear.’ is closed to new replies.