Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Category Page not working

$
0
0

Hello Caridad,

thanks for your fast support, but nothing has changed.

I've added the following code to my functions.php (Child Theme)

<?php function add_my_post_types( $query ){
if( $query->is_category ) {
$query->set( 'post_type', array( 'post', 'hk', 'vk', 'wm', 'hm'  ) );
}
return $query;
}
add_action( 'pre_get_posts', 'add_my_post_types' );
?>

hk, wk, wm and hm are the needed categories to display on the archive page.

Do you have other suggestions for the problem?

Which is the way with the custom taxonomy?

Regards,
Thorsten


Viewing all articles
Browse latest Browse all 20145

Trending Articles