Skip to content

Commit

Permalink
Respect primary marcador_especial term
Browse files Browse the repository at this point in the history
  • Loading branch information
leopiccionia committed Jul 16, 2024
1 parent b3d5ae5 commit c226717
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions themes/midia-ninja-theme/template-parts/header-especiais.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
$especial_terms = get_the_terms( get_the_ID(), 'marcador_especial' );

if ( ! empty( $especial_terms ) ):
$especial_term = $especial_terms[0];
$especial_term = get_primary_term( get_the_ID(), 'marcador_especial' );

if ( ! empty( $especial_term ) ):
$especial_pages = get_posts( [
'post_type' => 'especial',
'tax_query' => [[
Expand Down

0 comments on commit c226717

Please sign in to comment.