Skip to content

Instantly share code, notes, and snippets.

@erwstout
Created November 10, 2015 06:05
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 erwstout/56576b2294b160271a3a to your computer and use it in GitHub Desktop.
Save erwstout/56576b2294b160271a3a to your computer and use it in GitHub Desktop.
index
<?php get_header(); ?>
<?php
if(have_posts()) : the_post();
$boxAd = get_post_meta($post->ID, 'box_ad', $single = true);
?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<!-- Testing Featured Image -->
<?php /*
<a href="<?php the_permalink() ?>#more-<?php echo $post->ID ?>"><?php the_post_thumbnail();?></a>
*/ ?>
<!-- PRODUCTION FEATURED IMAGE STARTS HERE -->
<a href="<?php the_permalink() ?>#more-<?php echo $post->ID ?>"><img class="photo" src="<?php echo get_post_meta($post->ID, 'thesis_post_image', true); ?>"></a>
<!-- PRODUCTION FEAUTED IMAGE ENDS HERE -->
<aside class="further hide-for-small">
<?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>
<footer>
<a href="<?php the_permalink() ?>#more-<?php echo $post->ID ?>">Recipe</a> | <a href="<?php the_permalink() ?>#comments">Discussion</a>
</footer>
</article>
<?php endif; ?>
<script src="http://ib.3lift.com/ttj?inv_code=thecrepesofwrath_main_feed"></script>
<?php while(have_posts()) : the_post() ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<img src="<?php echo get_post_meta($post->ID, 'thesis_post_image', true); ?>">
<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>
<footer>
<a href="<?php the_permalink() ?>#more-<?php echo $post->ID ?>">Recipe</a> | <a href="<?php the_permalink() ?>#comments">Discussion</a>
</footer>
</article>
<?php endwhile; ?>
<div class="show-for-small">
<?php // Currently can't get same ad to display, reccomend adding 3rd location and calling/hiding that way
//include (TEMPLATEPATH . '/_/inc/box-ad.php' ); ?>
</div>
<?php include (TEMPLATEPATH . '/_/inc/nav.php' ); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment