Events Query
-
The event list shortcode doesn’t quite meet my needs. I need to be able to show a short description and I also need to format the date differently. Can I get help with this? I’m hoping to do a query like I’ve done in the past:
$the_query = new WP_Query( array(
‘posts_per_page’ => ‘2’,
‘post_type’ => ‘event’,
‘post_type’ => ‘event’,
‘order’ => ‘ASC’,
‘orderby’ => ‘meta_value’,
‘meta_key’ => ‘start_date’,
‘meta_type’ => ‘DATETIME’,
‘meta_query’ => array(
‘meta_key’ => ‘start_date’,
‘compare’ => ‘>’,
‘value’ => $date_now,
‘type’ => ‘DATETIME’,
),
‘meta_query’ => array(
‘meta_key’ => ‘title’,
‘compare’ => ‘>’,
‘value’ => $date_now,
‘type’ => ‘DATETIME’,
),
));Or I know that The Events Calendar offers a function specifically for this: https://support.theeventscalendar.com/666307-Using-tribe_get_events
Does Membershipworks offer anything like that?
- The topic ‘Events Query’ is closed to new replies.