Default Post Types in WordPress
WordPress has a lot of variety types of content and these are divided into Post Types. A post refers to a single item. By default, WordPress comes with some post types. These post types are all stored in the database in the the wp_posts table.
Let’s see some default post type provided by WordPress:
- Navigation Menus
- Custom CSS
Posts in WordPress are generally news or some informational updates on a certain topics.
- Posts are ordered in reverse chronological order.
- Recent published posts appear first i.e. on the top of page.
- Posts are also used for creating RSS feeds.
- Posts can be categorized, tagged and archived.
Pages in WordPress are static type of content which are independent of history.
- Pages are not ordered in reverse chronological order.
- Pages remains same, rarely updated.
- Pages don’t publish date and time.
- Pages don’t have any categories and tags.
- Pages are not used for creating RSS feeds.
Attachments in WordPress uploaded to a website in order to hold information about any media.
- Attachments also use wp_postmeta table to store meta data information for media types like images, videos or files.
- Attachments can be used to attach with any specific post after successfully uploaded to media.
- An attachments can be attached to multiple posts at a same time.
Revision is a special post type and a useful feature in WordPress, which creates a record of each saved draft or published updates.
- Revisions feature in WordPress prevent you to loose important data.
- Revisions facilitates to rollback on previous saved record if you make a mistake in current post record.
- Revisions autosave interval can be managed by defining ‘WP_POST_REVISIONS’ in your WordPress website’s config.php file.
WordPress site menus typically shown at the top of your website. WordPress menus post type allow you to create custom list of links to visit around your website’s page and other content.
Custom CSS in WordPress customize the appearance of the current theme. It allows you to add your own CSS which override the default styles of your active theme.
In WordPress 4.9, changesets was introduced. Changesets is a way to continuously store the changes made via the Customizer framework. WordPress keeps the content changes according to the customize_changesets during user session.