handling subpage thematiqueColor when is post type inside the menu
This commit is contained in:
parent
ec3ce40c60
commit
65f4462351
|
|
@ -106,7 +106,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
$postThematique = get_the_terms($item->object_id, "thematiques")[0];
|
$postThematique = get_the_terms($item->object_id, "thematiques")[0];
|
||||||
$postParentThematique = getMainThematique($postThematique);
|
$postParentThematique = getMainThematique($postThematique);
|
||||||
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $postParentThematique->term_id);
|
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $postParentThematique->term_id);
|
||||||
$thematiqueColorslug = getThematiqueFamilySlug($postThematique->slug);
|
$thematiqueColorslug = getThematiqueFamilySlug($postParentThematique->slug);
|
||||||
?>
|
?>
|
||||||
<?php if ($postThematique) : ?>
|
<?php if ($postThematique) : ?>
|
||||||
|
|
||||||
|
|
@ -141,7 +141,6 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
|
|
||||||
$taxonomyRelatedPost = get_posts($args)[0] ?? null;
|
$taxonomyRelatedPost = get_posts($args)[0] ?? null;
|
||||||
$cover = get_field('taxonomy_pictures', "thematiques_" . $mainTaxonomyParent->term_id);
|
$cover = get_field('taxonomy_pictures', "thematiques_" . $mainTaxonomyParent->term_id);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php if ($taxonomyRelatedPost) : ?>
|
<?php if ($taxonomyRelatedPost) : ?>
|
||||||
<a href="<?php echo get_permalink($taxonomyRelatedPost->ID) ?>">
|
<a href="<?php echo get_permalink($taxonomyRelatedPost->ID) ?>">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user