HelloARI logo: vinyl signs and identity design web design«    sign design«    blog«    contact«  USE MY IMAGINATION
web design and wordpress development 94114

san frnacisco web design

The difference between “custom content type” and “custom post type” and how to use them

CPT-IN-WORDPRESS-ADMIN“Custom Content Types“ (CCT) or “Custom Post Types” (CPT) are the same thing:  ways to group together similar types of content. “Custom Post Types” is the official name since WordPress started with “posts” but I think it’s more useful to think of them as types of  “content”. They are stored just like posts and pages with a unique ID (what Drupal calls a ‘node’), but aren’t considered the same as a post or a page. WordPress comes with 2 main default content types: posts and pages. Technically these are also CPTs: menus, media/attachments and links (an older default that won’t appear on newer WP sites).

Taxonomies are ways to categorize CPTs. Tags and Categories are the default taxonomies for Posts. If you are building a food website perhaps “color”, “flavor” and “season” would be usefully custom taxonomies. Tags and Categories are very similar but have a different admin interface and only Categories allow for nested (“parent/child”) sub-categories. Only “posts” are in the main default RSS feed but WordPress automatically builds an RSS feed for each taxonomy item and each CPT.

Custom Page Templates are special files for WordPress that control how content will be displayed. They are used only with pages in WordPress, not with posts or CPTs.

Here’s a breakdown:
CPT data types

  • Posts
  • Pages
  • Menus, Attachments (Media), and Revisions (technically CPTs but not as useful to think of them in the context of this article)
  • Common Custom Post Types added by plugins or themes:
    • Forms (like Gravity Forms)
    • Events
    • Products
    • Quotes
    • Sliders
    • Portfolio items
    • FAQs

tagsUsed to structure and relate CPT data

Used to display CPT data

  • “Archive” (an index or overview page that commonly shows 10 recent posts at a time. for a simple blog this is the homepage. But every taxonomy term will have an archive page and WordPress also builds archives pages by date.
  • “Permalink” or “single”: shows one post
This entry was posted in WordPress. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted April 3, 2016 at 11:49 am | Permalink

    What is the difference between a COMMENT and POST in wordpress?

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*

© 1996 - 2024
contact  |  links  |  rss