Proper Events
No events found...
Local Experiences
SELECT DISTINCT wp_posts.*, MIN(wp_postmeta.meta_value) as EventStartDate, MIN(tribe_event_end_date.meta_value) as EventEndDate FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) INNER JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = '_EventEndDate' ) WHERE 1=1 AND ( wp_postmeta.meta_key = '_EventStartDate' AND ( mt1.meta_key = '_EventStartDate' AND mt1.meta_value >= '2021-07-19 14:27:31' ) AND ( mt2.meta_key = '_EventStartDate' AND mt2.meta_value <= '2050-07-31 14:27:31' ) AND ( mt3.meta_key = 'local_experience' AND mt3.meta_value = '1' ) ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) AND (wp_postmeta.meta_value >= '2021-07-26 07:27:31' OR (wp_postmeta.meta_value <= '2021-07-26 07:27:31' AND tribe_event_end_date.meta_value >= '2021-07-26 07:27:31' )) GROUP BY wp_posts.ID ORDER BY EventStartDate ASC, wp_posts.post_date ASC
Sign Up Close Button

Become a Partner