continue loop if no pdf found
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
8a2a6988dc
commit
e7d85e3a0a
|
|
@ -10,6 +10,7 @@
|
||||||
$thematique = getPostMainThematique($brochurePost['ID']);
|
$thematique = getPostMainThematique($brochurePost['ID']);
|
||||||
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $thematique->term_id);
|
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . $thematique->term_id);
|
||||||
$brochure_pdf_link = get_field('brochure_pdf', $brochurePost['ID']);
|
$brochure_pdf_link = get_field('brochure_pdf', $brochurePost['ID']);
|
||||||
|
if (!$brochure_pdf_link) continue;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user