Horje

Tips (Total 1)


# Tips-1) How to Make category archives display all posts, regardless of post type: good for custom post types

Make category archives display all posts, regardless of post type: good for custom post types

Just copy and paste following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.
function any_ptype_on_cat($request) {

    if ( isset($request['category_name']) )
        $request['post_type'] = 'any';

    return $request;
}
add_filter('request', 'any_ptype_on_cat');