What is a Post Type?
Lab: WordPress Built-in Post Type Basics
Video Runtime: 12:25
In this episode, you will learn about what a “post type” is within WordPress. You’ll look in the
wp_posts database table to see the column named
post_type. You’ll see how this column relates to the buckets of content.
WordPress is a Content Management System (CMS). It manages content. All content is stored in the
wp_posts database table. Content includes the buckets we are familiar with such as Post, Page, Media, Menu, and various custom post types like Portfolio, Event, FAQ, Team Bio, etc. WordPress classifies content by its post type. Out of the box, it comes with the following built-in post types:
nav_menu_item<- menu items
revision<- content revision including drafts and previous revisions (if you have that enabled)
custom_css<- Customizer's "Additional CSS"
customize_changeset<- Customizer's auto-saves
Let’s dig in and see what the post type really is. You’ll even change the post type from
post to see what happens.
Don’t repeat yourself. Don’t repeat yourself. Don’t repeat yourself.
Total Lab Runtime: 00:49:58
- 1 Lab Introductionfree 01:54
- 2 What is a Post Type?free 12:25
- 3 Get the Registered Post Typespro 14:06
- 4 What are Post Type Features?pro 03:52
- 5 Add a New Post Type Featurepro 08:58
- 6 Remove a Post Type Featurepro 04:05
- 7 What is a Hierarchy?pro 03:16
- 8 Wrap it Uppro 01:22