Skip to content

Instantly share code, notes, and snippets.

@krishna19
Created October 3, 2016 10:04
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 krishna19/794fb5b878697d301c62ab63df5d034c to your computer and use it in GitHub Desktop.
Save krishna19/794fb5b878697d301c62ab63df5d034c to your computer and use it in GitHub Desktop.
standard.php
<?php
$show_thumb = get_post_meta(get_the_ID(), 'aq_format_0', TRUE);
$thumb = wp_get_attachment_url( get_post_thumbnail_id(),'full');
$image = aq_resize( $thumb, 1000, 400, true );
?>
<?php if ($show_thumb != 'no' && has_post_thumbnail() ) : ?>
<div class="post_image">
<img src="<?php echo $image; ?>" alt="">
</div>
<?php endif; ?>
<section <?php post_class(); ?>>
<div class="eight columns">
<h4 class="post_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<?php
if( get_post_type() != 'page' ) get_template_part('includes/post-date');
the_content( sprintf('<button class="float_right">%s</button', 'READ MORE'), FALSE);
if(is_single()) {
get_template_part('includes/post-meta');
wp_link_pages();
comments_template();
}
?>
</div>
<br class="clear" />
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment