Kaspar Dornfeld

Forum Replies Created

Viewing 1 post (of 1 total)

Forget my problem. I solved it myself.
Sorry to bother you!

For others:

I had a stupid function inserted in my functions.php, didn’t need it, deleted it. Problem solved.

It looked like this:

add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if(is_category() || is_tag()) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘post’,’page’,’articles’,’nav_menu_item’,’page’,’team_member’,’team’,’wpdmpro’);
$query->set(‘post_type’,$post_type);
return $query;
}
}

Viewing 1 post (of 1 total)