I've tried so many different things and I still can't seem to figure it out. I'm really bad at PHP so please be exact if you can help and I will thank you forever and ever. I am using The Morning After and I just moved it to make it self-hosted but now the author and the post date disappeared from my blog on the home page. When you go to the single however, it appears.
Here is the single:
<?php
get_header();
global $woo_options;
get_template_part( 'top-banner' );
?>
<?php
/**
* The Variables
*
* Setup default variables, overriding them if the "Theme Options" have been saved.
*/
$settings = array(
'thumb_single' => 'false',
'single_w' => 200,
'single_h' => 200,
'thumb_single_align' => 'alignright'
);
$settings = woo_get_dynamic_values( $settings );
?>
<div id="post_content" <?php post_class( 'column span-14' ); ?>>
<?php if ( have_posts() ) { ?>
<?php while ( have_posts() ) { the_post(); ?>
<div class="column span-11 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>
<?php echo woo_get_embed( 'embed','700','420' ); ?>
<?php if ( $settings['thumb_single'] == 'true' && ! woo_embed( '' ) ) { woo_image( 'width=' . $settings['single_w'] . '&height=' . $settings['single_h'] . '&class=thumbnail ' . $settings['thumb_single_align'] ); } ?>
<div class="post_meta">
<?php _e( 'By','woothemes' );?> <?php the_author_posts_link(); ?> <span class="dot">⋅</span> <?php the_time( get_option( 'date_format' ) ); ?> <span class="dot">⋅</span> <?php if( function_exists( 'wp_email' ) ) { ?> <?php email_link(); ?> <span class="dot">⋅</span> <?php } ?> <?php if( function_exists( 'wp_print' ) ) { ?> <?php print_link(); ?> <span class="dot">⋅</span> <?php } ?> <a href="#comments"><?php _e( 'Post a comment','woothemes' ); ?></a>
</div>
<div class="post_meta">
<?php the_tags( '<span class="filedunder"><strong>' . __( 'Filed Under','woothemes' ) . '</strong></span> ', ', ', '' ); ?>
</div>
<div class="post_text">
<?php the_content('<p>'.__('Continue reading this post','woothemes').'</p>'); ?>
<?php wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages','woothemes' ) . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
<?php edit_post_link( __( 'Edit this entry.', 'woothemes' ),'<p>','</p>' ); ?>
</div>
<?php
$comm = get_option( 'woo_comments' );
if ( 'open' == $post->comment_status && ($comm == 'post' || $comm == 'both' ) ) {
comments_template( '', true );
}
?>
</div>
<?php
} // End WHILE Loop
} else {
printf( __( '<p>Lost? Go back to the <a href="%s">home page</a></p>', 'woothemes' ), get_home_url() );
}
?>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
And here is the index:
<?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">⋅</span> <?php the_time( get_option( 'date_format' ) ); ?> <span class="dot">⋅</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">⋅</span> <?php the_time( get_option( 'date_format' ) ); ?> <span class="dot">⋅</span> <?php if( function_exists( 'wp_email' ) ) { ?> <?php email_link(); ?> <span class="dot">⋅</span> <?php } ?> <?php if( function_exists( 'wp_print' ) ) { ?> <?php print_link(); ?> <span class="dot">⋅</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( __( '« Previous', 'woothemes' ) ); ?> <?php previous_posts_link( __( 'Next »', '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(); ?>
Please help. Thanks!