Skip to content

Instantly share code, notes, and snippets.

@SeanChDavis
Created March 17, 2015 19:24
Show Gist options
  • Save SeanChDavis/89cc77f35d956e018a72 to your computer and use it in GitHub Desktop.
Save SeanChDavis/89cc77f35d956e018a72 to your computer and use it in GitHub Desktop.
Volatyl Override Single Post Template (generic)
<?php
/**
* Custom Template File
*/
get_header();
vol_html_before_content();
?>
<div id="main-content" class="full clearfix">
<div class="main clearfix">
<div id="content" class="site-content border-box clearfix">
<?php
while (have_posts()) { the_post(); ?>
<article id="post-<?php echo the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
</header>
<?php
// Download item Featured Image
the_post_thumbnail('full', array(
'class' => 'featured-img download-img',
'alt' => the_title_attribute('echo=0')
));
?>
<section class="entry-content">
<?php
// display download content
the_content();
?>
</section>
</article>
<?php
}
?>
</div>
<?php get_sidebar('one'); ?>
</div>
</div>
<?php
vol_html_after_content();
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment