I have a number of regular posts and pages in a regular category called "Featured". I have also installed a plugin called "Event Organizer" that creates its own custom post type called "Event" and has its own interface for creating plugin-specific categories.
Anyways, what I've created is a basic highlight slider using a query to pull in the featured category posts and pages (I enabled categories in my pages) as well as the event posts. This is the query:
$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);
The problem is that everything works fine on my local testing environment but absolutely refuses to work on my web host. In my local testing environment both the "featured" posts and pages are pulled up AS WELL AS the event custom posts. On my web host only the event posts show. If I switch "post type" to
array('post','page') I get the featured posts and pages but lose the event posts.