Skip to content

Commit

Permalink
Count fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipstenu committed Dec 11, 2023
1 parent fc53d9f commit e4fccdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template-parts/content-post_type_actors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit e4fccdc

Please sign in to comment.