Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:2312703
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<div class="posts grid8 alpha">
<h2 class="section-title">Recent Posts</h2>
<?php
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
?>
<?php $args = array( 'cat' => '-592, -614', 'post_status' => 'publish', 'paged' => $paged); ?>
<?php $query = new WP_Query($args); ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<?php get_template_part( 'content-results'); ?>
<?php endwhile; ?>
 
<?php wp_pagenavi(); // Use PageNavi ?>
<?php wp_reset_postdata(); ?>
</div><!-- .posts -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.