function any_ptype_on_cat($request) {
if ( isset($request['category_name']) )
$request['post_type'] = 'any';
return $request;
}
add_filter('request', 'any_ptype_on_cat');
How to Make category archives display all posts, regardless of post type: good for custom post types | Wordpress Category Shortcode |
Make category archives display all posts, regardless of post type: good for custom post types | Wordpress Category Shortcode |
Read Full: | Wordpress Category Shortcode |
Category: | Web Tutorial |
Sub Category: | Wordpress Category Shortcode |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 40 |