Created
April 5, 2012 17:29
-
-
Save kalbers/2312703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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