General (default: 200). * * @package WordPress * @subpackage Fictioneer * @since 4.7 * @see single-fcn_collection.php * * @internal $args['collection'] Collection post object. * @internal $args['collection_id'] The collection post ID. * @internal $args['title'] Safe collection title. * @internal $args['current_page'] Number of the current page or 1. * @internal $args['max_pages'] Total number of pages or 1. * @internal $args['featured_list'] IDs of featured items in the collection. Already cleaned. * @internal $args['featured_query'] Paginated query of featured items. Already cleaned. */ ?> 'fcn_chapter', 'post_status' => 'publish', 'post__in' => $query_chapter_ids, 'posts_per_page' => -1, 'update_post_term_cache' => false ); $chapters = new WP_Query( $chapter_query_args ); // Count words foreach ( $chapters->posts as $chapter ) { // This is about 50 times faster than using a meta query lol if ( ! fictioneer_get_field( 'fictioneer_chapter_hidden', $chapter->ID ) && ! fictioneer_get_field( 'fictioneer_chapter_no_chapter', $chapter->ID ) ) { $words = fictioneer_get_field( '_word_count', $chapter->ID ); $word_count += intval( $words ); } } } ?>
found_posts ); ?>
'fcn_chapter', 'post__in' => $query_chapter_ids, 'status' => 1, 'count' => true ) ) ); ?>