adding onsult publications button

This commit is contained in:
Antoine M 2023-12-07 15:58:39 +01:00
parent 29d9b61f51
commit b1248d8264

View File

@ -198,6 +198,16 @@ FILTERS
?> ?>
</ul> </ul>
<?php
$args = array(
'meta_key' => '_wp_page_template',
'meta_value' => "template-publications.php"
);
$relatedPublicationsTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
?>
<a class="cta cta--button cta--outline cta--centered" href="<?php echo get_the_permalink($relatedPublicationsTemplatePage) ?>"><?php echo __("Consulter toutes les publications ", "homegrade-theme__texte-fonctionnel") ?></a>
</div> </div>