'post', 'posts_per_page' => ($bloggerpress_number_single_related_posts), 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); // Check for category. if (!empty($bloggerpress_select_single_related_posts_category)) : $post_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $bloggerpress_select_single_related_posts_category, ), ); endif; $single_related_posts = new WP_Query($post_args); if ($single_related_posts->have_posts()) : ?>