• Hi!!! Can you Help me please!!!….
    This is my Website: https://events360.ca

    With 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 please

    Thanks
    ———————————————————————–
    <?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 );

Viewing 1 replies (of 1 total)
  • Hi,

    Unfortunately, due to large number of issues that support is facing, we can not help you with this code. The main purpose of this forum is for us to catch and address product bugs, but hopefully other users can help you. We’ll keep this topic open for a few days for other user to chime in if possible. Thanks for your understanding.

    Ben

    • This reply was modified 8 years, 4 months ago by Benjamin.
Viewing 1 replies (of 1 total)
  • The topic ‘ai1ec Funtions… all-in-one-event-calendar’ is closed to new replies.