adding onsult publications button
This commit is contained in:
parent
29d9b61f51
commit
b1248d8264
|
|
@ -198,6 +198,16 @@ FILTERS
|
|||
?>
|
||||
</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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user