WordPress is able to hold and display many different types of content. A single item of a content like this is generally called a post, although post is also a specific post type. All the post types are stored in the same place, in the wp_posts database table, but are differentiated by a column called post_type.
There are five post types that are available to users or internally used by the WordPress installation by default:
- Post (Post Type: ‘post’)
- Page (Post Type: ‘page’)
- Attachment (Post Type: ‘attachment’)
- Revision (Post Type: ‘revision’)
- Navigation menu (Post Type: ‘nav_menu_item’)
Post in WordPress is a post type which is typical for and most used by blogs. Posts are normally displayed in a blog in reverse sequential order by time. Posts are also used for creating the feeds.
Page in WordPress is just like post, but it lives outside the normal time-based listings of posts. Pages may use different page templates to display them. Pages can also be organized in a hierarchical structure, pages being parents to other pages, but they normally can’t be assigned categories and tags. If permalinks are enabled, the permalink of a page is always composed solely of the main site URL and the user-friendly and URL-valid names of the page and its parents if they exist.
Attachment is a special post which keeps information about a file uploaded through the WordPress media upload system, such as its description and name. For images, this is also linked to metadata information, stored in the wp_postmeta table, about the size of the images, the thumbnails generated from the images, the location of the image files, the HTML alt text, and even information obtained from EXIF data embedded in the images.
Revision is for holding a draft post as well as any past revisions of a published post. Revisions are mainly identical to the published post that they belong to. But they have that post set as their parent using the post_parent column of the wp_posts table.
Navigation Menu holds information about a single item in the WordPress navigation menu system.
This much guys! Hope you liked this article!