diff --git a/template-parts/content-post_type_actors.php b/template-parts/content-post_type_actors.php index 2c088556..6d5e3a6d 100644 --- a/template-parts/content-post_type_actors.php +++ b/template-parts/content-post_type_actors.php @@ -14,8 +14,9 @@ // This just gets the numbers of all characters and how many are dead. $all_chars = lwtv_yikes_actordata( $the_id, 'characters' ); +$all_dead = lwtv_yikes_actordata( $the_id, 'dead' ); $havecharcount = ( is_array( $all_chars ) ) ? count( $all_chars ) : 0; -$havedeadcount = count( lwtv_yikes_actordata( $the_id, 'dead' ) ); +$havedeadcount = ( is_array( $all_dead ) ) ? count( $all_dead ) : 0; $related = lwtv_plugin()->has_cpt_related_posts( $slug );