Modif temporaire pour le chargement des news
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Gilles Van Assche 2024-09-05 12:11:26 +02:00
parent e980908aa9
commit f7df3a5809

View File

@ -8,7 +8,7 @@ $args = array(
$relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null; $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null; $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
$post_per_page = 12; $post_per_page = 24;
$args = array( $args = array(
"post_type" => "post", "post_type" => "post",
"status" => "publish", "status" => "publish",
@ -133,7 +133,7 @@ $posts = new WP_Query($args);
<?php if ($posts->max_num_pages > 1) : ?> <?php if ($posts->max_num_pages > 1) : ?>
<button id="load-more-news" class="cta cta--outline cta--button mx-auto mb-32">Charger Plus</button> <button id="load-more-news" class="cta cta--outline cta--button mx-auto mb-32"><?php echo __("Charger Plus", "homegrade-theme__texte-fonctionnel") ?></button>
<?php endif; ?> <?php endif; ?>
</section> </section>