Skip to content

Instantly share code, notes, and snippets.

@bwhli
Created August 18, 2018 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhli/b7279b3ab09e42402ecea2b903694fb4 to your computer and use it in GitHub Desktop.
Save bwhli/b7279b3ab09e42402ecea2b903694fb4 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div class="posts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<h1 class="post-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h1>
<span class="post-date"><?php the_date('F j, Y'); ?></span>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} ?>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<?php endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment