WordPress.org

Forums

My comments disappeared from my blog- how can I make them appear? (4 posts)

  1. moonxdreams
    Member
    Posted 2 years ago #

    I moved my WordPress blog to make it self-hosted but now my comments are not appearing on my blog; however, they are still showing up in the comments section. How do I bring them back? I am using The Morning After Theme and I'm not very good at this PHP stuff so please help :( I tried doing the loop and adding in a little bit of PHP from previous searches but it still does not seem to work.

    This is my index.php:

    <?php
    	get_header();
    	global $woo_options;
    	get_template_part( 'top-banner' );
    
    	$blog_name = get_bloginfo( 'name' );
    ?>
            <div id="arch_content" class="column span-14">
    
            <?php if ( have_posts() ) { ?>
            <?php while ( have_posts() ) { the_post(); ?> 
    
            	<div class="column span-3 first">
                	<h2 class="post_cat"><?php $cat = get_the_category(); $cat = $cat[0]; echo $cat->cat_name; ?></h2>
    
    	<h2 class="post_name" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>        
    
                	<div class="archive_meta">
    
                		<div class="archive_feed">
                			<a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'RSS feed for','woothemes' );?> <?php echo $blog_name; ?></a>
                		</div>
    
                	</div>
                </div>           
    
                <div class="column span-8">
    
                <?php while ( have_posts() ) { the_post(); ?> 
    
    	    	<div <?php post_class( 'archive_post_block' ); ?>>
                		<h3 class="archive_title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'woothemes' );?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    
                		<div class="archive_post_meta"><?php _e( 'By', 'woothemes' ); ?> <?php the_author_posts_link(); ?> <span class="dot">&sdot;</span> <?php the_time( get_option( 'date_format' ) ); ?> <span class="dot">&sdot;</span> <a href="<?php comments_link(); ?>"><?php comments_number( __( 'Post a comment', 'woothemes' ), __( 'One comment', 'woothemes' ),'% comments' ); ?></a></div>
    
                		<?php the_excerpt(); ?>
                	</div>
    
    <div class="post_meta">
                		<?php _e( 'By','woothemes' );?> <?php the_author_posts_link(); ?> <span class="dot">&sdot;</span> <?php the_time( get_option( 'date_format' ) ); ?> <span class="dot">&sdot;</span> <?php if( function_exists( 'wp_email' ) ) { ?> <?php email_link(); ?> <span class="dot">&sdot;</span> <?php } ?> <?php if( function_exists( 'wp_print' ) ) { ?> <?php print_link(); ?> <span class="dot">&sdot;</span> <?php } ?> <a href="#comments"><?php _e( 'Post a comment','woothemes' ); ?></a>
                	</div>
    
                	<?php } // End WHILE Loop ?>
    
    				<div class="navigation">
    					<p><?php next_posts_link( __( '&laquo; Previous', 'woothemes' ) ); ?> &nbsp; <?php previous_posts_link( __( 'Next &raquo;', 'woothemes' ) ); ?></p>
    				</div>
    
    				<?php
    					} else {
    						printf( __( '<p>Lost? Go back to the <a href="%s">home page</a></p>', 'woothemes' ), get_home_url() );
    					}
    				?>
    
                </div>
    
                <?php get_sidebar(); ?>
    
            </div>
    <?php get_footer(); ?>
  2. It may not be a theme issue. When you switch to the Twenty Eleven theme do the comments come back?

  3. moonxdreams
    Member
    Posted 2 years ago #

    No they do not appear to be :(

  4. Can you share a link to your site?

Topic Closed

This topic has been closed to new replies.

About this Topic