Skip to content

Instantly share code, notes, and snippets.

@erwstout
Created November 10, 2015 06:04
Show Gist options
  • Save erwstout/d3e2bdff07fffcb4b01a to your computer and use it in GitHub Desktop.
Save erwstout/d3e2bdff07fffcb4b01a to your computer and use it in GitHub Desktop.
Single.php
<?php get_header(); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
$boxAd = get_post_meta($post->ID, 'box_ad', $single = true);
$gawkerURL = get_post_meta($post->ID, 'gawker_url', $single = true);
$spottingURL = get_post_meta($post->ID, 'spotting_url', $single = true);
?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<img class="photo" src="<?php echo get_post_meta($post->ID, 'thesis_post_image', true); ?>">
<aside class="further">
<?php include (TEMPLATEPATH . '/_/inc/box-ad.php' ); ?>
<?php include (TEMPLATEPATH . '/_/inc/post-details.php' ); ?>
</aside>
<hgroup>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<h2><?php echo get_post_meta($post->ID, 'subtitle', true); ?></h2>
</hgroup>
<div class="entry">
<?php the_content(); ?>
</div>
<?php include (TEMPLATEPATH . '/_/inc/share-recipe.php' ); ?>
</article>
<script src="http://ib.3lift.com/ttj?inv_code=thecrepesofwrath_article_sub"></script>
<section class="comments">
<?php comments_template(); ?>
</section>
<?php endwhile; endif; ?>
<script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
<script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
stLight.options({
publisher:'wp.4c82e78f-bd4b-4cb5-b311-f036ed6ebdc4'
});
var st_type='wordpress3.4';
</script>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment