diff --git a/partials/_card-chapter.php b/partials/_card-chapter.php index 446d05a5..c4717d8d 100644 --- a/partials/_card-chapter.php +++ b/partials/_card-chapter.php @@ -22,6 +22,7 @@ defined( 'ABSPATH' ) OR exit; // Setup $title = fictioneer_get_safe_title( $post->ID ); $story_id = get_post_meta( $post->ID, 'fictioneer_chapter_story', true ); +$story_post = get_post( $story_id ); $story_unpublished = get_post_status( $story_id ) !== 'publish'; $story_data = $story_id ? fictioneer_get_story_data( $story_id, false ) : null; // Does not refresh comment count! $chapter_rating = get_post_meta( $post->ID, 'fictioneer_chapter_rating', true ); @@ -150,7 +151,15 @@ $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_chapter_cards' )