-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
30 lines (19 loc) · 705 Bytes
/
search.php
File metadata and controls
30 lines (19 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php get_header(); ?>
<main>
<h2>Résultats de recherche</h2>
<?php if(have_posts( )) : ?>
<?php while(have_posts( )) : the_post( ); ?>
<article class="flex post">
<!--Afficher seulement le titre + extrait et lien -->
<div class="texte-article">
<h2><?php the_title( ); ?></h2>
<p><?php the_excerpt( ); ?> <a href="<?php the_permalink( );?>">En savoir plus...</a> </p>
</div>
</article>
<?php endwhile; ?>
<?php else : ?>
<!--Si aucun résultats de recherche -->
<p>Aucun résultat pour cette requête...</p>
<?php endif;?>
</main>
<?php get_footer(); ?>