Skip to content

Instantly share code, notes, and snippets.

@rajeevedmonds
Last active December 12, 2015 03:28
Show Gist options
  • Save rajeevedmonds/4707273 to your computer and use it in GitHub Desktop.
Save rajeevedmonds/4707273 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div id="post-content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_post_thumbnail(); ?>
<?php the_content(); ?>
<p class="postmetadata">
<?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br />
<?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?>
</p>
</div>
<!-- Addition of comment system to the single post page -->
<div class="comments-wrapper">
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; ?>
<!-- Navigation links for previous and next post -->
<div class="blog-pager">
<?php previous_post_link('< %link') ?> <?php next_post_link(' %link >') ?>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment