FIX Useless call to dynamiques content

This commit is contained in:
Antoine M 2026-05-20 10:52:01 +02:00
parent 17c66844f7
commit b18ba728d3

View File

@ -11,14 +11,7 @@
<span><?php echo __('Rechercher', 'homegrade-theme__texte-fonctionnel') ?></span>
</button>
</div>
<?php
$lastRevue = $recent_posts = wp_get_recent_posts(array(
'numberposts' => 1,
'post_type' => 'revues',
'post_status' => 'publish',
));
$lastRevueUrl = get_permalink($lastRevue[0]['ID']);
?>
<ul class="search-module__suggestions">