Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $ai1ec_calendar_helper, $ai1ec_events_helper;
- $bits = $ai1ec_events_helper->gmgetdate( $ai1ec_events_helper->gmt_to_local( time() ) );
- $start_time = $ai1ec_events_helper->local_to_gmt( $now );
- $end_time = $ai1ec_events_helper->local_to_gmt( $end_time );
- $now = $ai1ec_events_helper->local_to_gmt( time('D, M d Y H:i:s') );
- // The New Events Query
- $args = array(
- 'posts_per_page' => 1,
- 'paged' => get_query_var('paged'),
- 'post_type' => 'ai1ec_event',
- 'cat_ID' => '40',
- 'orderby' => 'date',
- 'order' => 'ASC',
- 'post_status' => 'publish',
- );
- $events_added = new WP_Query( $args );
- // The Loop
- while ( $events_added->have_posts() ) : $events_added->the_post();
- $event = Ai1ec_Calendar_Helper::get_events_between($now, $end_time, $filter, $spanning = false);
- ?>
- <li>
- <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('home-features'); ?></a>
- <?php the_excerpt(); ?>
- <h2>
- <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </h2>
- </li>
- <?php
- endwhile;
- // Reset Post Data
- wp_reset_postdata();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement