ai1ec Funtions… all-in-one-event-calendar
-
Hi!!! Can you Help me please!!!….
This is my Website: https://events360.caWith This code i can Show 5 Cover of events in the front End!.. Only Upcoming Events….
Now With the New Version of all-in-one-event-calendar this code no work for me!! HELP pleaseThanks
———————————————————————–
<?php
/* template name: upcoming-events */// get our registry object that let you access all our classes
global $ai1ec_registry;// get the search model
$search = $ai1ec_registry->get( ‘model.search’ );// get events between cuurent time and +7 days
$get_events = $search->get_events_between(
$ai1ec_registry->get( ‘date.time’, ‘now’ ),
$ai1ec_registry->get( ‘date.time’, ‘now +90 days’ )
);//loop through results to get post_ids
foreach($get_events as $event ):
$post_ids[] = $event->post_id;
endforeach;$args_custom = array(
‘posts_per_page’ => $qp_showposts,
‘post_type’ => $qp_post_type,
‘order’=> $qp_order,
‘orderby’ => $qp_orderby,
‘post_status’ => ‘publish’,
‘post__in’ => $post_ids,
‘tax_query’ => array(
array(
‘taxonomy’ => $taxonomy,
‘field’ => ‘slug’,
‘terms’ => $terms
)
)
);$myposts_custom = get_posts( $args_custom );
- The topic ‘ai1ec Funtions… all-in-one-event-calendar’ is closed to new replies.