add calendar events
This commit is contained in:
13
search.php
13
search.php
@@ -23,8 +23,15 @@ get_header();?>
|
||||
|
||||
<?if (trim($s) !== ''):?>
|
||||
|
||||
<?$params = [
|
||||
'post_type' => 'post',
|
||||
's' => $s,
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => 20
|
||||
]?>
|
||||
|
||||
<p class="search-result">По запросу «<?php
|
||||
$allsearch = new WP_Query("s=$s&showposts=-1");
|
||||
$allsearch = new WP_Query($params);
|
||||
$key = esc_html($s, 1);
|
||||
$count = $allsearch->post_count; _e('');
|
||||
_e('<span class="search-terms">');
|
||||
@@ -38,7 +45,7 @@ else:
|
||||
echo $count . ' '; _e('результата');
|
||||
endif;
|
||||
endif;
|
||||
wp_reset_query(); ?></p>
|
||||
//wp_reset_query(); ?></p>
|
||||
|
||||
<?php if(have_posts()) :?>
|
||||
<div class="search-card-box">
|
||||
@@ -72,6 +79,8 @@ wp_reset_query(); ?></p>
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
<?wp_reset_postdata();?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user