'post', 'post_status' => 'publish', 'posts_per_page' => 10, 'post__not_in' => array_map( 'absint', $gustavoo_args['exclude'] ?? array() ), 'ignore_sticky_posts' => true, 'orderby' => 'date', 'order' => 'DESC', ); if ( ! empty( $gustavoo_args['category_id'] ) ) { $gustavoo_query_args['cat'] = absint( $gustavoo_args['category_id'] ); } $gustavoo_latest_posts = new WP_Query( $gustavoo_query_args ); if ( ! $gustavoo_latest_posts->have_posts() ) { return; } ?>
have_posts() ) : $gustavoo_latest_posts->the_post(); ?>