add calendar events

This commit is contained in:
2021-10-31 13:01:31 +03:00
parent cbefa787b1
commit f97013cfaf
16 changed files with 701 additions and 52 deletions

View File

@@ -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>