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

@@ -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 запроса
) );