Please try changing line 372 of includes/query.php from this:
// does query contain post type as a string or post types array
if(is_array($post_types))
$run_query = (bool)array_intersect($post_types, apply_filters('em_event_post_type', array('event')));
else
$run_query = in_array($post_types, apply_filters('em_event_post_type', array('event')));
into this:
// does query contain post type as a string or post types array
if(is_array($post_types) && !array_diff($post_types, apply_filters('em_event_post_type', array('event'))))
$run_query = (bool)array_intersect($post_types, apply_filters('em_event_post_type', array('event')));
else
$run_query = in_array($post_types, apply_filters('em_event_post_type', array('event')));
And please report if it solved the issue.
Yep, I had already made a similar change to make it work.
Your code also works and allows my Query to work properly now.
Thanks for quick response.
I have been using The Event Calendar on most projects, but have grown tired of its inability to work other things. I wanted a simpler solution that I can integrate into bespoke projects, that doesn’t pollute the WordPress dashboard for clients. Not convinced this is it it yet, but giving it a go on latest project.
Do you have this project on github or bitbucket? I’d be interested in forking and contributing if it fits.
Thanks Tim.
Any suggestions or contributions are welcome.
We’re not running this on Github, but we have some plans to do that in the future.
When it comes to the Events Calendar and Events Maker – we created it mainly because of the frustration of using EC or other event management plugins. Wanted something easy to use for clients but at the same time powerful for us, the developers (for example: try the em_event_post_type filter). At the same time we needed it to be fully compatible with Polylang and WPML. So here it is.
Hope you and others’ll like it.
Regards,
Bartosz