Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created December 31, 2018 11:12
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 Musilda/cafad2de4cd6fac4dad9fd8542d337c4 to your computer and use it in GitHub Desktop.
Save Musilda/cafad2de4cd6fac4dad9fd8542d337c4 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div class="col-8">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php echo the_excerpt();?>
</div>
</div>
<?php
endwhile;
else:
?>
<div id="post-0" class="post error404 not-found">
<h1 class="entry-title"><?php _e( 'Not Found', 'theme' ); ?></h1>
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'theme' ); ?></p>
</div><!-- .entry-content -->
</div><!-- #post-0 -->
<?php endif; ?>
</div>
<div class="col-4">
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment