'post', 'posts_per_page' => absint($no_of_must_reads), 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, 'orderby' => esc_attr($must_read_orderby), 'order' => esc_attr($must_read_order), ); // Check for category. if (!empty($must_read_cat)) : $post_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $must_read_cat, ), ); endif; $must_reads = new WP_Query($post_args); if ($must_reads->have_posts()) : ?>

have_posts()) : $must_reads->the_post(); ?>