4, 'post__in' => $sticky, 'ignore_sticky_posts' => 1 ); $query = new WP_Query( $args ); // if we have sticky post if ( isset($sticky[0]) ) : // loop throgh them if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); // display each post beautiful_blog_post(); endwhile; endif; endif; // reset previous query wp_reset_query(); // get posts that are not sticky $query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ), 'paged' => $paged ) ); // loop throgh them if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); // display each post beautiful_blog_post(); endwhile; endif; // reset previous query wp_reset_query(); ?>