$args = array(
'category__not_in' => array(1, 13, 14, 15, 18),
'post_type' => array('post'),
'publish' => true,
'paged' => get_query_var('paged'),
'posts_per_page' => 10,
);
query_posts($args);
while ( have_posts() ) : the_post();
get_template_part( 'content', 'shortpost' );
endwhile;
wp_reset_postdata();
navigation();
$sticky = get_option( 'sticky_posts' );
$args = array(
'category__not_in' => array(1, 13, 14, 15, 18),
'post_type' => array('post'),
'publish' => true,
'paged' => get_query_var('paged'),
'posts_per_page' => 10,
'ignore_sticky_posts' => 1,
'post__not_in' => $sticky
);
query_posts($args);
while ( have_posts() ) : the_post();
get_template_part( 'content', 'shortpost' );
endwhile;
wp_reset_postdata();
navigation();
Find more questions by tags WordPress