Upcoming events without show-code with custom query
-
I am using All In One Event calendar plugin, I want to show Upcoming events in one page with custom query instead of shortcodes. As I am having my custom structure for display events.
I am trying with below code but not not working for me. Please help me our here.
$args = array(
‘posts_per_page’ => 4,
‘paged’ => get_query_var(‘paged’),
‘post_type’=> ‘ai1ec_event’,
‘orderby’ => ‘post__in’
);
$eventquery = new WP_Query($args);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Upcoming events without show-code with custom query’ is closed to new replies.