Hot answers tagged categories
Try this <?php $args = array ( 'post_type' => array( 'nav_menu_item', 'venue', 'story' ) ); $query = new WP_Query( $args ); while ( $query->have_posts() ) : $query->the_post(); the_title(); the_content(); endwhile; wp_reset_postdata(); ?>
You create categories with the correct parent and child/children. The trick is to only select the lowest category, not each one, and WordPress will automatically do that for you, i.e. - Cars - Chevrolet - Camaro Only check Camaro and WP will make a slug for all the parent items :)
My guess is that there is a filter-- pre_get_posts most likely-- being applied to the category archive and that that filter is written too broadly, and applies to all queries on the page instead of just the one it is intended for-- probably the main query. The correct solution would be to fix that filter, but I can't say exactly how without seeing the code. ...
Only top voted, non community-wiki answers of a minimum length are eligible