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
- Navigation menus
- Custom CSS
Examples of WordPress default Taxonomies
All default post types have the taxonomies of category and tag associated with them.
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?
- When your content cannot be displayed in either post or page type. For example, affiliate coupons.
- When your content needs a different layout than existing post types.
- When your content does not need to be part of a chronological series of entries. Example, glossary or an index.
- When Categories or Tags don’t help sort this particular content. For example, affiliate coupons are sorted by usage like plugins, hosting, or services.
- 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
Custom Post Type Plugins
Please carefully review these plugins to make sure they match your needs and resources before implementing them.
This content was created for a Racine WordPress Meetup. Please join us online for future presentations.