continue loop if no pdf found
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-03-31 10:09:03 +02:00
parent 8a2a6988dc
commit e7d85e3a0a

View File

@ -10,6 +10,7 @@
$thematique = getPostMainThematique($brochurePost['ID']);
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $thematique->term_id);
$brochure_pdf_link = get_field('brochure_pdf', $brochurePost['ID']);
if (!$brochure_pdf_link) continue;
?>