-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsearch.php
More file actions
36 lines (24 loc) · 1022 Bytes
/
search.php
File metadata and controls
36 lines (24 loc) · 1022 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
31
32
33
34
35
36
<?php
/**
* The template for displaying search results pages.
*
* @package tink-2014
*/
get_header(); ?>
<h1><?php printf( esc_html__( '“%s” Search Results' ), get_search_query() ); ?></h1>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h2 class="article_title" id="aria-article-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php get_template_part( 'includes/metadata' ); ?>
</header>
<?php the_excerpt(); ?>
</article><!-- .article -->
<?php endwhile; ?>
<?php get_template_part( 'includes/pagination' ); ?>
<?php else : ?>
<?php get_template_part( 'includes/content', 'none' ); ?>
<?php endif; // have_posts() ?>
<?php get_footer(); ?>