Skip to toolbar

Displaying Custom Post Types with Default Categories & Tags

Need to make your Custom Post Types show up in the Categories & Tags archives in WordPress? This will fix that.

You’ve associated your Custom Post Types with Default Categegories or Default Tags but those posts aren’t showing up when you click those from your sidebar. What’s up?

By default, WordPress only shows the post_type post in it’s Category or Tag archives. This is actually handled in the pre_get_posts filter. To make your custom post types show up, you need to add the following to your functions.php in your theme:

Add your own post_type to the array('post','review') above, replacing review. Don’t remove post or Categories and Tags won’t work for your Posts any longer, either.