fixing condition onGrandparent
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f0225214b2
commit
bc7d3362bc
|
|
@ -14,7 +14,7 @@ $thematiqueColorSlug = $mainThematique->slug;
|
|||
<?php
|
||||
$currentPage = get_post();
|
||||
$parentPage = $currentPage->post_parent !== 0 ? get_post($currentPage->post_parent) : null;
|
||||
$grandParentPage = $parentPage->post_parent ? get_post($parentPage->post_parent) : null;
|
||||
$grandParentPage = $parentPage && $parentPage->post_parent ? get_post($parentPage->post_parent) : null;
|
||||
|
||||
?>
|
||||
<ol>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user