Hey Stephen,
First of all thank you very much for making this excellent plugin and well done!
I’ve just noticed that since your latest update, a certain functionality has stopped working on my site. I have a featured content slider on my homepage that pulls in posts and pages listed under a category I called featured. The query also pulls in events from your plugin. I used a tax query to pull in this data and set the post-type to ‘any’. Now in version 1.7.3 of Event Organiser this worked swimmingly with both types of content being pulled in, but since the latest update, only the events show up in my slider (not the featured posts/pages).
Here is my query as it used to work when using event organiser v1.7.3:
$args=array(
'post_type' => 'any',
'showposts' => $featured_num,
'order' => 'DESC',
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'featured'
),
array(
'taxonomy' => 'event-category',
'field' => 'slug',
'terms' => 'featured-event'
)
)
);
$my_query = new WP_Query($args);
I’ve racked my brains for 2 days trying to understand why but to no avail, and have temporarily reverted to using the old 1.7.3 version instead of the latest release.
If I change the post type to:
'post-type' => array('page','post')
I get my featured posts and pages, but lose out on displaying the events. And if I change it to ‘post-type’ => ‘any’ or:
'post-type' => array('page','post','event')
I only get the event posts.
Any help would be greatly appreciated!
Thanks!