internationalazing search
This commit is contained in:
parent
425270ca4c
commit
d6e6b648de
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
|
||||
<button type="submit">
|
||||
<span>Rechercher</span>
|
||||
<span><?php echo __('Rechercher', 'homegrade-theme__texte-fonctionnel') ?></span>
|
||||
<img class="search_icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/search-icon.svg' alt=''>
|
||||
</button>
|
||||
</form>
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="search-module__wrapper-container">
|
||||
<?php get_search_form(); ?>
|
||||
<div class="search-module__suggestions">
|
||||
<>Suggestions :</>
|
||||
<?php echo __("Suggestions :", "homegrade-theme__texte-fonctionnel") ?>
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'conseils',
|
||||
|
|
@ -13,10 +13,11 @@
|
|||
'orderby' => 'rand',
|
||||
|
||||
);
|
||||
$suggestions_posts = get_posts($args);
|
||||
$suggestions_posts = new WP_Query($args);
|
||||
?>
|
||||
<ul class="search-module__suggestions__navlist">
|
||||
<?php foreach ($suggestions_posts as $post) : ?>
|
||||
|
||||
<?php foreach ($suggestions_posts->posts as $post) : ?>
|
||||
<li class="suggestion-item">
|
||||
<a href="<?php echo get_the_permalink($post->ID) ?>"><?php echo $post->post_title ?></a>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user