Skip Navigation

[Resolved] What is the point in Custom Taxonomies when you have Custom Post Types?

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to know the difference between a taxonomy and a custom post type.

Solution:

The taxonomies are meant to categorise your custom posts. The custom post types are meant to hold the actual information of the posts.

In order words when you want to create a post that will have a title, content, image, custom fields etc you will do this under a custom post type.

Lets say you have a having a book catalogue website.

You will create a Custom Post Type called book, which will hold the book title, the description and then the featured image will be the cover of the book.

Now how a taxonomy comes in is that it allows you to categorise the books. This can either be Fantasy, Fiction, Science Fiction etc.

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 6 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1114438

Ben

A bit of a strange one, but something I need an answer to. I want to make sure I am using both in the correct ways before I start to populate my site with data.

What is the point in Custom Taxonomies when you have Custom Post Types?

Using the tools available within Toolset, I can use Views to display and categorise my Custom Post Types. What would the advantages be of using a Custom Taxonomy over a Custom Post Type then? I can't think of one myself.

Thank you in advance, and apologies for a strange question!

#1114506

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

There is actually a major difference.

The taxonomies are meant to categorise your custom posts. The custom post types are meant to hold the actual information of the posts.

In order words when you want to create a post that will have a title, content, image, custom fields etc you will do this under a custom post type.

Lets say you have a having a book catalogue website.

You will create a Custom Post Type called book, which will hold the book title, the description and then the featured image will be the cover of the book.

Now how a taxonomy comes in is that it allows you to categorise the books. This can either be Fantasy, Fiction, Science Fiction etc.

Please let me know if this explanation helps you to understand a bit better.

Thanks,
Shane

#1116606

Ben

Thank you for the explanation Shane. Very clear!

I am finding a lot of crossovers in my application of both though.

For example, I want some of my CPTs to be categorised by city, but I need to display information about each city etc. I find that using a CPT type and a Relationship is easier for this.

Should I be doing that?

#1116633

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

You are able to add the city information to a taxonomy if you want because you can add custom fields to your taxonomies.

There is also the option to make use of the post relationship. It really comes down to personal preference in my opinion.

However I would recommend the taxonomies as an easier route.

Thanks,
Shane

#1120106

Ben

I have seen the option to add custom fields to my taxonomies but then this information always seems to be more difficult to display on the front end compared to the information from custom posts. For example, they don't seem to appear in the "Fields and Views" shortcode menu. Ideally I would like to use taxonomies for this purpose as they do seem to fit the bill better, I just need to smooth out the issues.

I will have a play about, but thank you very much for all the information and advice.