-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
42 lines (33 loc) · 1.14 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
41
42
<?php get_header(); ?>
<?php
// $increase_sidebar_position = get_field('increase_options_sidebar_position','options');
?>
<div id="primary" class="content-area" >
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) { ?>
<div class="posts-wrap">
<?php while (have_posts()) : the_post();
get_template_part('template-parts/post/content', 'excerpt');
endwhile;
if ($wp_query->max_num_pages > 1) {
if (function_exists('wp_pagenavi')) {
wp_pagenavi();
} else {
?><div class="alignleft"><?php next_posts_link( __( '<span>«</span> Older posts', 'increase' ) );?></div>
<div class="alignright"><?php previous_posts_link( __( 'Newer posts <span>»</span>', 'increase' ) );?></div><?php
}
} ?>
</div>
<?php }else{ ?>
<p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'increase'); ?></p>
<?php get_search_form(); ?>
<?php } ?>
</main>
</div>
</div>
<style media="screen">
#main{
margin-top:120px;
}
</style>
<?php get_footer();