autosender
This commit is contained in:
@@ -5,14 +5,34 @@
|
||||
*/
|
||||
|
||||
get_header();
|
||||
$nn = 0;?>
|
||||
$nn = 0;
|
||||
|
||||
$category = get_queried_object();
|
||||
|
||||
|
||||
/**
|
||||
$query = new WP_Query( [
|
||||
|
||||
|
||||
'orderby' => 'meta_value_date',
|
||||
'order' => 'ASC',
|
||||
'meta_key' => 'startevent',
|
||||
'post_type' => 'post',
|
||||
'category_name' => $category->name
|
||||
|
||||
] );
|
||||
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
||||
<li><a href="https://vetandlife.ru">Главная</li>
|
||||
<li> - <?single_cat_title()?></li>
|
||||
</ul>
|
||||
|
||||
@@ -21,7 +41,9 @@ $nn = 0;?>
|
||||
<?php if(have_posts()) :?>
|
||||
<div class="search-card-box">
|
||||
|
||||
<?php while(have_posts()) : the_post();?>
|
||||
<?php while(have_posts()) :
|
||||
the_post();
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -30,11 +52,10 @@ $nn = 0;?>
|
||||
<div class="search-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></div>
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<img class="search-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" width="180" alt="<?the_title();?>">
|
||||
<?endif?>
|
||||
<div><?the_excerpt();?></div>
|
||||
<div class="mini-card-body">
|
||||
<?endif?>
|
||||
<!--<div class="mini-card-body">
|
||||
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user