'latest_recommendations_compact', 'post_type' => 'fcn_recommendation', 'post_status' => 'publish', 'post__in' => $args['post_ids'], // May be empty! 'order' => $args['order'], 'orderby' => $args['orderby'], 'posts_per_page' => $args['count'], 'no_found_rows' => true ); // 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'] ) { add_filter( 'posts_where', 'fictioneer_exclude_protected_posts' ); } // Apply filters $query_args = apply_filters( 'fictioneer_filter_shortcode_latest_recommendations_query_args', $query_args, $args ); // Query chapters $entries = fictioneer_shortcode_query( $query_args ); // Remove temporary filters remove_filter( 'posts_where', 'fictioneer_exclude_protected_posts' ); ?>
have_posts() ) : ?>