Understanding Custom Post Types

Understanding Custom Post Types

Understanding Custom Post Types: When and Why to Use Them

To understand Custom Post Types in WordPress, you first need to understand default post types. A “post” is a default post type, as is “page,” “attachment,” or any custom post type you register. When you choose between a blog post vs. a page of content, you are deciding between categories of default post types. For example, the “post” post type is a blog entry, and the “page” post type is a website page.

Examples of WordPress default Post Types

  • Posts
  • Pages
  • Attachments
  • Navigation menus
  • Revisions
  • Custom CSS

Examples of WordPress default Taxonomies

All default post types have the taxonomies of category and tag associated with them.

  • Categories
  • Tags

What is a WordPress Custom Post Type?

Your “custom post type” isn’t a type of “post” in the sense of a blog post. A custom post type is a type of post in that all posts (of all post types) store data in the database.

When Do I Need Custom Post Type?

  1. When your content cannot be displayed in either post or page type. For example, affiliate coupons.
  2. When your content needs a different layout than existing post types.
  3. When your content does not need to be part of a chronological series of entries. Example, glossary or an index.
  4. When Categories or Tags don’t help sort this particular content. For example, affiliate coupons are sorted by usage like plugins, hosting, or services.
  5. When you need additional fields to enter more info about your content.

Examples of Custom Post Types in action:

  • Movie review sites
  • Real estate listings
  • WooCommerce products
  • Testimonials
  • Places
  • People

Custom Post Type Plugins

Please carefully review these plugins to make sure they match your needs and resources before implementing them.

Author’s Note

This content was created for a Racine WordPress Meetup. Please join us online for future presentations. 

Posted by