Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $recent_args = array(
- 'order' => 'DESC',
- 'post__not_in' => get_option( 'sticky_posts' ),
- 'tax_query' => array(
- array(
- 'taxonomy' => 'post_format',
- 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ),
- 'field' => 'slug',
- 'operator' => 'NOT IN',),
- ),
- 'no_found_rows' => true,
- );
- $temp = $wp_query;
- $recent= null;
- $recent = new WP_Query( $recent_args );
- $recent->query('showposts=5'.'&paged='.$paged);
- while ( $recent->have_posts() ) : $recent->the_post(); get_template_part( 'content', get_post_format() );
- global $more;
- $more = 0;
- endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement