add calendar events
This commit is contained in:
@@ -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 запроса
|
||||
) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user