Title: Category returning Nothing Found
Last modified: August 22, 2016

---

# Category returning Nothing Found

 *  Resolved [ryankolalis](https://wordpress.org/support/users/ryankolalis/)
 * (@ryankolalis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/category-returning-nothing-found/)
 * For original wp posts I can view them by category.
    When I try and view a new
   custom post type I get a nothing found page. using template twentythirteen. any
   idea on what is going on?
 * I have changed permalink back to default and the issue still persists.
    Post 
   types are set to use category and tags in its settings.
 * [https://wordpress.org/plugins/magic-fields-2/](https://wordpress.org/plugins/magic-fields-2/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ryankolalis](https://wordpress.org/support/users/ryankolalis/)
 * (@ryankolalis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/category-returning-nothing-found/#post-5370077)
 * does it have something do to with the categories for all my custom post types
   being linked together. Example I have a post type of reps who’s categories would
   be United States, Mexico… Then i have another post type of news with categories
   like trade shows. email blasts… But in each post type I can see the others categories.
   United states is a category for news and email is a category for reps.
 * ?
 *  Thread Starter [ryankolalis](https://wordpress.org/support/users/ryankolalis/)
 * (@ryankolalis)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/category-returning-nothing-found/#post-5370361)
 * The answer for this is pre get posts by the way.
 * > function add_custom_types_to_tax( $query ) {
   >  if( is_category() || is_tag()&&
   > empty( $query->query_vars[‘suppress_filters’] ) ) {
   > // Get all your post types
   >  $post_types = get_post_types();
   > $query->set( ‘post_type’, $post_types );
   >  return $query; } } add_filter( ‘pre_get_posts’,‘
   > add_custom_types_to_tax’ );
 * credit to [WPMUDEV](http://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category returning Nothing Found’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magic-fields-2.svg)
 * [Magic Fields 2](https://wordpress.org/plugins/magic-fields-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magic-fields-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magic-fields-2/)
 * [Active Topics](https://wordpress.org/support/plugin/magic-fields-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magic-fields-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magic-fields-2/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [ryankolalis](https://wordpress.org/support/users/ryankolalis/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/category-returning-nothing-found/#post-5370361)
 * Status: resolved