I use this filter to show content from all custom post types in tags archive page
function tagFilter($query) {
$post_type = $_GET['type'];
if (is_tag()){
if (!$post_type) {
$post_type = 'any';
}
$query->set('post_type', $post_type);
}
return $query;
};
add_filter('pre_get_posts','tagFilter');
but somehow it stops the wp_nav_menu
function and navigation menus do not appear in tags archive pages.
I can't figure out where is the conflict between the two.
Any ideas?