My home.php is associated with my blog page, as opposed to rest of site which is just a cms. I want my blog page to render the comments ability, an archive of older posts, tags, blogroll, etc. Right now, this is what I have in my home.php:
<?php /* Template Name: Home */ ?> <?php get_header(); ?> <?php $blog_query = new WP_Query; $blog_query->query( 'post_type=post' ); ?> <div id="post-content"> <?php echo "Blog updated daily" ?> <?php if( $blog_query->have_posts() ) : ?> <?php while( $blog_query->have_posts() ) : $blog_query->the_post(); ?> <div class="post"> <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?> </div> <?php get_footer(); ?>
Problem is obviously, this just rendering the posts, but not the comment section or anything else. How can I inherit the wordpress defaults so that it will display the comment section and so forth? Right now If i was to remove that code above, the page would be blank.