diff --git a/template-archive-jobs.php b/template-archive-jobs.php index a415bea..18cb555 100644 --- a/template-archive-jobs.php +++ b/template-archive-jobs.php @@ -14,7 +14,7 @@ $thematiqueColorSlug = $mainThematique->slug; 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; ?>