What are the differences between custom post type and custom page templates?

What is the difference between custom taxonomies and page templates and custom post types?

I think I understand that taxonomy is used to organize data. CPTs are used to give your data a different design.

but can’t a template be used instead of CPT? or are they used in combination?

and can’t categories be used instead of creating additional taxonomies?

i guess are CPT’s and custom taxonomies just tools to make life easier or do they serve a purpose that could not be achieved without them?

I have been creating new templates for any page the needs a different look or any page that uses a specific category. have i been doing this wrong or poorly? instead of having 7 templates should i have 7 CPT’s or something like that?

3 s
3

Taxonomies are categorizations of data. Tags are a taxonomy. Categories are another taxonomy. If you are building a movie website and want to show which actors starred in which movie, “Movies” would be a custom taxonomy.

Custom Post Types are really just custom data items. They’re stored just like posts and pages, but aren’t considered the same thing as a post or a page. In the movie website example above, “Actor” might be a custom post type with a Name, a Biography, and a Headshot as elements.

Custom Page Templates are special files for WordPress that dictate how the content will be laid out on the page. They’re used strictly with pages in WordPress, not with posts or custom post types.

Think of it this way:

Types of Data:

  • Posts
  • Pages
  • Menus (yes, these are a custom post type)
  • Custom Post Types

Ways to Structure and Relate Data:

  • Tags
  • Categories
  • Post Formats
  • Custom Taxonomies

Ways to Present Data:

  • Custom Page Template

Leave a Comment