Internally, all of the Post Types are stored in the same place — in the wp_posts
database table — but are differentiated by a database column called post_type
.
Default post type
- Post (Post Type: ‘post’)
- Page (Post Type: ‘page’)
- Attachment (Post Type: ‘attachment’)
- Revision (Post Type: ‘revision’)
- Navigation menu (Post Type: ‘nav_menu_item’)
Custom post type
register_post_type