-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
executable file
·40 lines (29 loc) · 1.02 KB
/
search.php
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
37
38
39
40
<?php get_header(); ?>
<h1><span>Resultados de búsqueda Para:</span> <?php echo esc_attr(get_search_query()); ?></h1>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article>
<header>
<h3><?php the_title(); ?></a></h3>
</header>
<section>
<?php the_excerpt( '<span class="read-more">' . __( 'Read more »', 'NuevaWeb' ) . '</span>' ); ?>
</section>
<footer></footer>
</article>
<?php endwhile; ?>
<?php if (function_exists('nw_paginate_links')) { ?>
<?php nw_paginate_links(); ?>
<?php } else { ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link( __( '« Older Entries', 'NuevaWeb' )) ?></li>
<li class="next-link"><?php previous_posts_link( __( 'Newer Entries »', 'NuevaWeb' )) ?></li>
</ul>
</nav>
<?php } ?>
<?php else : ?>
<?php // A 404 answer goes here ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>