'latest_updates_list', 'post_type' => 'fcn_story', 'post_status' => $args['post_status'], 'post__in' => $args['post_ids'], // May be empty! 'order' => $args['order'], 'orderby' => 'meta_value', 'meta_key' => 'fictioneer_chapters_added', 'posts_per_page' => $args['count'] + 4, // Account for non-eligible posts! 'update_post_term_cache' => $show_terms, // Improve performance 'no_found_rows' => true // Improve performance ); // Use extended meta query? if ( get_option( 'fictioneer_disable_extended_story_list_meta_queries' ) ) { // Extended syntax necessary due to 'fictioneer_chapters_added' $query_args['meta_query'] = array( array( 'key' => 'fictioneer_story_hidden', 'value' => '0' ) ); } else { $query_args['meta_query'] = array( 'relation' => 'OR', array( 'key' => 'fictioneer_story_hidden', 'value' => '0' ), array( 'key' => 'fictioneer_story_hidden', 'compare' => 'NOT EXISTS' ) ); } // Author? if ( ! empty( $args['author'] ) ) { $query_args['author_name'] = $args['author']; } // Author IDs? if ( ! empty( $args['author_ids'] ) ) { $query_args['author__in'] = $args['author_ids']; } // 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']; } // Excluded authors? if ( ! empty( $args['excluded_authors'] ) ) { $query_args['author__not_in'] = $args['excluded_authors']; } // Ignore protected? if ( $args['ignore_protected'] ) { $query_args['has_password'] = false; } // Only protected? if ( $args['only_protected'] ) { $query_args['has_password'] = true; } // Apply filters $query_args = apply_filters( 'fictioneer_filter_shortcode_latest_updates_query_args', $query_args, $args ); // Query stories $entries = fictioneer_shortcode_query( $query_args ); // Extra attributes $attributes = []; if ( $splide ) { $attributes[] = "data-splide='{$splide}'"; } ?>
> ' . __( 'Splide JSON is invalid and has been ignored.', 'fictioneer' ) . ''; } if ( $splide ) { echo fictioneer_get_splide_loading_style( $splide, $args['uid'] ); echo fictioneer_get_splide_placeholders( $args['uid'], true ); echo '
'; } ?> have_posts() ) : ?>
'; } ?>