get_theme_mod('blesk_featured_count', get_option('posts_per_page')), 'ignore_sticky_posts' => true, 'meta_query' => array( array( 'key' => 'blesk_featured_post_checkbox', 'value' => 'on', 'compare' => '=' ), ), 'cache_results' => true, 'update_post_meta_cache' => true, 'update_post_term_cache' => true, ); // The Query $featured = new WP_Query( $args ); // The Loop if ( $featured->have_posts() ) { //If there are any post in the query, echo wrapper mark-up echo ''; } else { // no posts found } // Restore original Post Data wp_reset_postdata();