handling empty value + removing unecessary icon query
This commit is contained in:
parent
21cb7a16d9
commit
9afefea23a
|
|
@ -6,10 +6,8 @@ $videosWebinairesPosts = $args['videosWebinairesPosts'];
|
|||
<?php
|
||||
$thematique = get_the_terms(get_the_ID(), 'thematiques')[0] ?? null;
|
||||
$mainThematique = getParentThematique($thematique) ?? null;
|
||||
$mainThematiqueIcon = get_field('taxonomy_pictures', "thematiques_" . $rootThematic->term_id)['icon'] ?? null;
|
||||
$publicationDate = get_field("date", get_the_ID());
|
||||
$webinaireUrl = get_field("url", get_the_ID());
|
||||
|
||||
?>
|
||||
<li class="publications-grid__row publications-grid--webinaires__row">
|
||||
|
||||
|
|
@ -31,4 +29,9 @@ $videosWebinairesPosts = $args['videosWebinairesPosts'];
|
|||
</li>
|
||||
|
||||
<?php endwhile ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if (!$videosWebinairesPosts->have_posts()) : ?>
|
||||
<p class="publications-grid__no-results filters-no-results"><?php echo __("Aucun webinaire n'a été trouvé", "homegrade-theme__texte-fonctionnel__publications-archive") ?></p>
|
||||
<?php endif ?>
|
||||
Loading…
Reference in New Issue
Block a user