Instantly share code, notes, and snippets.

Embed
What would you like to do?
Net Magazine - clean template example
<?php
/**
* The single episode template
*
* @package Core
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<main id="content" class="site-content" role="main">
<?php while ( have_posts() ): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article" itemscope itemtype="http://schema.org/Episode">
<?php get_template_part( 'partials/episode' , 'details' );?>
<?php get_template_part( 'partials/episode' , 'recap' );?>
<div class="entry-content">
<?php do_action( 'core_content' );?>
</div>
</article>
<?php endwhile;?>
</main>
<?php endif; ?>
</main>
<?php get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment