Horje
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');





Related Articles
How to Make category archives display all posts, regardless of post type: good for custom post types Wordpress Category Shortcode

Single Articles
Make category archives display all posts, regardless of post type: good for custom post typesWordpress Category Shortcode

Read Full:
Wordpress Category Shortcode
Category:
Web Tutorial
Sub Category:
Wordpress Category Shortcode
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
40



Share on: