Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

When Do You Need a Custom Post Type or Taxonomy in WordPress?

Custom post types and taxonomies can extend WordPress beyond its standard features. If you use them the right way, they can help organize your site more effectively.

That said, they might not always be necessary, and you may be wondering if you should use them.

At WPBeginner, we structure our content using custom post types and taxonomies to make navigation easier for our users. So, we are very familiar with these features and know how to use them to optimize a website.

This guide will help you understand when to use custom post types and taxonomies and how to maximize these features.

When do you need a custom post type or taxonomy in WordPress?

What Are Custom Post Types in WordPress?

Custom post types are similar to other content types like posts and pages. A post type refers to any type of content you create on your website.

WordPress comes with a few different post types by default:

  • Post
  • Page
  • Attachment
  • Revision
  • Nav Menu
  • Block templates (Patterns)
  • Templates

Note: There are several other content types used by WordPress behind the scenes to provide different features, such as custom CSS, customize changeset, template parts, oEmbed cache, and more.

Post types help distinguish between different content types in WordPress. Posts and pages are both post types, but they serve different purposes.

You can also create your own post types, known as custom post types. These are useful when creating content that has a different format than a standard post or page.

For example, if you run a book review WordPress website, then you will probably want to create a book review post type. This post type can even have different custom fields and a unique category structure.

We use custom post types at WPBeginner on our Deals, Solution Center, and Glossary pages.

Custom post type coupons page example

A lot of popular WordPress plugins already use custom post types to store data on your WordPress website. Here are a few examples:

  • WooCommerce – Adds a ‘product’ custom post type to your WordPress site.
  • WPForms – Creates a ‘wpforms’ post type to store all your forms.
  • MemberPress – Adds a ‘memberpressproduct’ custom post type.

WordPress eCommerce plugins, directory plugins, real estate plugins, recipe plugins, and others also use custom post types and taxonomies for sorting content.

For more details, see our guide on how to create custom post types in WordPress.

What Are Taxonomies in WordPress?

Taxonomies are used to group posts and custom post types.

There are two taxonomies included in WordPress: categories and tags. These are useful for standard blog posts, but they may not be as suitable when you start to use custom post types.

For example, you can create a custom post type called ‘Books’ and sort it with a custom taxonomy called ‘Genre.’

Then, you can add different genres, such as Fantasy, Horror, Romance, Self-Help, and more. This lets you and your readers quickly sort books based on their genre preferences.

Taxonomies sorting example

For more details, see our guide on how to create custom taxonomies in WordPress.

How Do You Know When You Need a Custom Post Type or Taxonomy?

You can theoretically add any type of content in WordPress posts and sort them with categories and tags, but sometimes this is not ideal.

Below are some signs that might suggest you should probably consider creating a custom post type, custom taxonomy, or both:

  1. Some of the content you post just doesn’t look or feel like a post, such as our blogging coupons page.
  2. Your content doesn’t need to be part of a chronological series of entries, like our WordPress glossary section.
  3. Categories and tags won’t help you group and sort that particular content, such as the specific sections in our coupons area.
  4. You need additional fields to enter more information with your content. For instance, our WordPress Solution Center has different sections with custom fields.
  5. It cannot be part of your pages. For example, our Blueprint page is simply a page with several subpages.
  6. You need to display that particular content differently than posts or pages.

Now, let’s look at another real-life example. Suppose you run a movie review website where you publish movie reviews and other kinds of movie-related content.

Let’s say your movie reviews have been very popular with your audience, so you want to make them better and easier to navigate. You can improve them by adding star ratings and making them searchable by actor names, genre, and more.

In this case, you will need to create a custom post type for movie reviews and then add a custom taxonomy for sorting between actors and genres.

This allows your visitors to easily browse through your movie reviews instead of every post on your WordPress blog.

Another typical example is for creatives like photographers and graphic designers creating portfolios.

If you simply share your work in a blog post, it’s easy to get lost in the rest of your content. By creating a separate portfolio custom post type, your visitors can easily browse through all of your work.

Portfolio custom post type example

If you have various categories of work in your portfolio, then you can also create a custom taxonomy for each type of portfolio project.

Additional Resources

Are you new to extending WordPress with custom taxonomies and post types? At WPBeginner, we have been helping WordPress beginners for the past 16 years.

In our experience, the following are some of the most useful resources for managing custom post types and taxonomies in WordPress:

We hope this article helped you understand when to use custom post types or taxonomies in WordPress. You may also want to see our beginner’s guide on switching or converting custom post types or check out these useful custom post type tutorials for additional tips.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

20 CommentsLeave a Reply

  1. Frank Luzón

    Thank you for this article, it helped me a lot!

    • WPBeginner Support

      Glad our guide was helpful!

      Admin

  2. Rana

    A great article!!
    So now I want to learn custom field,type & taxonomy. From where can i learn properly all of these useful things.?? Plz suggest me any blog or YT channel or anything else..

  3. Amy

    Custom Post Types are awesome but something I’ve always wondered: how do you handle when or if you want to delete like for the sake of your example a ‘single coupon’ from the CPT…. like you no longer need it or it’s not relevant anymore. Does this cause an error if someone clicks on it in search results if it indeed was showing up in search results; how do you handle properly deleting a specific item from a Custom Post Type? Or maybe you don’t delete it at first; you mark it with a Redirect possible? Would love to know how that should be handled properly :)

  4. arddev

    Hi, am I correct to think that your index(CT) has the same slug name as your “glossary” CPT? Is there any possible conflict when a custom taxonomy has a slug the same as a CPT?

    • WPBeginner Support

      We do not need a custom taxonomy for our custom post type but if your custom taxonomy has the same slug then there is a chance it can cause issues based on your permalink settings.

      Admin

  5. ADRIE

    What is “Related Post-Meta Box”?

    Is that another way of saying, related post or related products?

    Or related categories/tags?

    • WPBeginner Support

      It is a custom taxonomy :)

      Admin

  6. Tanuj Kalia

    Hi, I run a site, we have 14,000+ posts (all ‘just’ posts) with NO ‘custom posts’.

    The website has been running for 8 years now, and we have 250,000 unique visitors a month.

    We now want to convert some ‘categories’ of the posts into ‘custom posts’.

    How do we ensure that our URL structure (and SEO) is not disturbed?

    Thanks in anticipation!

  7. Snippet

    Great articles for those who are starting with wordpress.. I have a question: can a taxonomy be created only for regular posts in a category/several categories? and not with a custom post type…

  8. Steve

    I don’t know if these comments are still being monitored/responded to, but I just came across your article. I would like to do something analogous to your coupons pages, but add a feature where a reader can have an RSS feed or email notification sent to them whenever a new coupon is added to a specific category (e.g., Theme coupons, but not Plugin coupons, or vice versa). Could such features be added to a custom post type/taxonomy as a native WordPress feature or with a plugin? Thanks (for the article, and a possible reply).

    • WPBeginner Support

      All custom post types and taxonomies in WordPress have their own RSS feeds. This allows you to segment your email list(s). You can allow users to subscribe to your coupons post type or selected taxonomies under coupons post type.

      Admin

  9. Laila

    Thanks for great ‘plain English’ videos for non tech experts.

    I don’t think I need the extras that a custom post type plug in offers. If I should change my mind later in the development and implementation is it possible (without too many headaches) to add a custom post plugin at a later date and then categorize regular posts already made?

    Thanks.

    • WPBeginner Support

      Yes it is possible. But the difficulty level depends on what you want to do with custom post types.

      Admin

  10. Gerard

    Great explanation. I’m developing a theme and I didn’t know how to separate the Testimonials section, the Quotes section, the Portfolio section, etc. Also, I will use it in a site where I review hostings.

    But I have a question about it: where is the information stored? If I make backups using a plugin, will the information be stored?

  11. Johan

    Can I store my custom post type in a new table, like wp_products instead to wp_posts. If yes, can someone point me in the right direction? Please. :D

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.