Hello,
found the problem. Wasn’t aware that by default the category pages on a WordPress site will only display the default ‘Posts’ post type. To display a custom post type like the event post type on the same category page as the default posts, you need to add code into theme’s functions.php:
function add_custom_types_to_tax( $query ) {
if( is_category() || is_tag() && empty( $query->query_vars[‘suppress_filters’] ) ) {
// Get all your post types
$post_types = get_post_types();
$query->set( ‘post_type’, $post_types );
return $query;
}
}
add_filter( ‘pre_get_posts’, ‘add_custom_types_to_tax’ );
So Events Manger was not the problem as i thought in first place.
-
This reply was modified 8 years ago by vgraba.