ID ); $latest = $args['show_latest'] ?? false; $chapter_ids = array_slice( $story['chapter_ids'], $latest ? -3 : 0, 3, true ); // Does not include hidden or non-chapters $chapter_count = count( $chapter_ids ); $excerpt = fictioneer_first_paragraph_as_excerpt( fictioneer_get_content_field( 'fictioneer_story_short_description', $post->ID ) ); $excerpt = empty( $excerpt ) ? __( 'No description provided yet.', 'fictioneer' ) : $excerpt; $tags = false; if ( get_option( 'fictioneer_show_tags_on_story_cards' ) && ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' ) ) { $tags = get_the_tags(); } // Flags $hide_author = $args['hide_author'] ?? false && ! get_option( 'fictioneer_show_authors' ); $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' ) && ( $story['has_taxonomies'] || $tags ); $show_type = $args['show_type'] ?? false; $is_sticky = FICTIONEER_ENABLE_STICKY_CARDS && get_post_meta( $post->ID, 'fictioneer_story_sticky', true ) && ! is_search() && ! is_archive(); ?>