Advertisement
Guest User

Untitled

a guest
Nov 4th, 2011
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php $recent_args = array(
  2. 'order' => 'DESC',
  3. 'post__not_in' => get_option( 'sticky_posts' ),
  4. 'tax_query' => array(
  5. array(
  6. 'taxonomy' => 'post_format',
  7. 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ),
  8. 'field' => 'slug',
  9. 'operator' => 'NOT IN',),
  10. ),
  11. 'no_found_rows' => true,
  12. );
  13.  
  14. $temp = $wp_query;
  15. $recent= null;
  16. $recent = new WP_Query( $recent_args );
  17. $recent->query('showposts=5'.'&paged='.$paged);
  18.  
  19. while ( $recent->have_posts() ) : $recent->the_post(); get_template_part( 'content', get_post_format() );
  20.  
  21. global $more;
  22. $more = 0;
  23. endwhile; ?>
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement