Thank you, I have a template “Schlagwort-Archive” in German. But it is not used. The postid is “postId=spectra-one%2F%2Ftag”
I have tags on normal posts and custom posts. I doesn’t work either. I always get the blue default template.
Maybe the problem are the tags of the custom post type. With the standard posts it works but not the tags of the Custom post type.
To handle them I found a code snippet
add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if( is_tag() ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘nav_menu_item’, ‘post’, ‘rezis’);
$query->set(‘post_type’,$post_type);
return $query;
}
This seems to be the problem. If this is active the tag-archive-template ist not found. If it is inactive shows the right archive page, the normal posts and not the Custom type posts.
How can I get the custom posts?
with regards
Michael