absint( $trending_post_number ), 'no_found_rows' => true, 'post__not_in' => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => true, ); if ( absint( $trending_category ) > 0 ) { $query_args['cat'] = absint( $trending_category ); } $all_posts = new WP_Query( $query_args ); if ( $all_posts->have_posts() ) : ?>
    have_posts() ) : $all_posts->the_post(); ?>