'latest_updates_compact', 'post_type' => 'fcn_story', 'post_status' => 'publish', 'post__in' => $args['post_ids'], // May be empty! 'meta_key' => 'fictioneer_chapters_added', 'orderby' => 'meta_value', 'order' => $args['order'] ?? 'DESC', 'posts_per_page' => $args['count'] + 4, // Little buffer in case of no viable chapters 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'fictioneer_story_hidden', 'value' => '0' ), array( 'key' => 'fictioneer_story_hidden', 'compare' => 'NOT EXISTS' ), ), 'no_found_rows' => true, 'update_post_term_cache' => false ); // Parameter for author? if ( isset( $args['author'] ) && $args['author'] ) $query_args['author_name'] = $args['author']; // Taxonomies? if ( ! empty( $args['taxonomies'] ) ) { $query_args['tax_query'] = fictioneer_get_shortcode_tax_query( $args ); } // Excluded tags? if ( ! empty( $args['excluded_tags'] ) ) { $query_args['tag__not_in'] = $args['excluded_tags']; } // Excluded categories? if ( ! empty( $args['excluded_cats'] ) ) { $query_args['category__not_in'] = $args['excluded_cats']; } // Apply filters $query_args = apply_filters( 'fictioneer_filter_shortcode_latest_updates_query_args', $query_args, $args ); // Query stories $entries = fictioneer_shortcode_query( $query_args ); ?>
have_posts() ) : ?>