add calendar events
This commit is contained in:
@@ -23,7 +23,7 @@ if( $posts ):
|
||||
<div class="right_archive">
|
||||
<a href="<?php the_permalink(); ?>"><img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'fil');?>" alt="<?the_title();?>"></a>
|
||||
<div class="right_archive_text"><a href="<?php the_permalink(); ?>">Читать газету<br>«Ветеринария и Жизнь»</a></div>
|
||||
<div class="right_archive_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></div>
|
||||
<div class="right_archive_link"><a href="<?php the_permalink(); ?>"><?=the_title();?></a></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php echo calend_block(date('m'), date('Y'), true);
|
||||
|
||||
# три последних эвента
|
||||
|
||||
@@ -6,12 +6,16 @@ $posts = get_posts( array(
|
||||
'numberposts' => 3,
|
||||
'category' => 61, // 61 - мероприятия
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'include' => array(),
|
||||
'exclude' => array(),
|
||||
'meta_key' => '',
|
||||
'meta_value' =>'',
|
||||
'order' => 'ASC',
|
||||
|
||||
'date_query' => array(
|
||||
array(
|
||||
'after' => '3 days ago',
|
||||
),
|
||||
),
|
||||
|
||||
'post_type' => 'post',
|
||||
'post_status' => 'publish, future',
|
||||
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
|
||||
) );
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
$mosts = get_posts( array(
|
||||
'numberposts' => 3,
|
||||
'category' => 2, // пока без категории
|
||||
'post__in' => get_option( 'sticky_posts' ),
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC',
|
||||
'include' => array(),
|
||||
|
||||
Reference in New Issue
Block a user