Post types are one of the less understood and highly-underrated elements of WordPress. As we go through the different personalities of it, you will know it’s more than an integral part, itās what gives life to the WordPress software.
If youāre thinking that Iām taking it too far with the above statement, letās hold it for a minute. WordPress Post types are what enable you to distinguish between different content types on your website. For example, posts, pages, attachments, etc. It is this feature that transforms WordPress from a blogging platform to a CMS!
If you wish to become a WordPress developer or just want to know All-Thing-Everything WordPress, like us, then you have to know post types. Because from here on things start getting spicier and WordPress even more intriguing and glamorous.
Incomingā¦.
What is WordPress Post Type?
Well, post type is a term that describes different types of content on a WordPress website.
You must wonder why it is called post type and not something else.
Umm, Iāll just put out what I think is the reason (in my whole and sole opinion!). We all know WordPressās journey from a repository to a blogging platform. The term that is most relevant and used in a blog is what – Post!
So, as WordPress evolved and different types of content came into the picture. Yes, they all have their separate names but one common name that stuck with everyoneā¦.you know itā¦..Post! That is how different content on a WordPress website got the name.. Post Type.
So, now when you say posts or attachment, the ideal or technical way of saying it is Post Type: āpostā and Post Type: āattachmentā.
Why are Post Types needed?
Letās understand why WordPress post types are so important, and I canāt stop fussing over it. You know, without representing different types of content on a website like articles, photos, videos, portfolio, etc. there is no website.
But, in addition to being a website there is no sort of content management without different types of content, right?
And thatās where WordPress post type supports the whole software and redefines it into a CMS from a blogging platform. Donāt worry bloggers, it is still one of the best and most popular blogging platforms, with lots of other gizmos and features! š¤©
As WordPress evolved into a CMS, this led to the foundation of it going into the direction of becoming a website builder.
Post types are needed because they allow you to have different types of content on your website. Imagine a website, where you can have just articles, no images, videos, or any other content of any sort.
Moreover, you can have custom post types, i.e., create post types as per your requirement. For example, a blog can have a separate post type, like reviews, portfolio, etc. Thus, enabling you to completely customize your website and each content available on it! Keep reading, youāll understand everything and an example at the end to clear any clouds of confusion š¤ļø.
Built-in/Default post type in WordPress and what they offer?
WordPress comes bundled with a lot of features and functionalities right out of the box, to give users a complete and holistic CMS and website building experience.
Letās get familiar with default WordPress post types and what they offer. Iāll be writing another article followed by this where Iāll cover every post type in detail:
Post (Post Type: āpostā)
A post type: āpostā in WordPress is the backbone of the blogging platform, for which WordPress is highly popular and famous for. Posts show up in reverse sequential order (newer posts to display first). You can always change this order. Some people may call it WordPress post type āblogā, but thatās incorrect, period! š
They come with a date and time stamp. You can also use taxonomies; categories and tags, to make accessibility and readability ever so fluent on your blog. You must be thinking great, but what is it š¤?
Posts also play a vital role in creating RSS (Really Simple Syndication) feeds. RSS is an XML file that holds all information, i.e., title, description, and link for each post on the site. This is easily copied by readers/visitors on an RSS reader, which enables to see all the websiteās content in one place. This allows you to stay updated with the latest notifications from all your favorite blogs, websites in one place.
Today, RSS has become a thing of the past, with the dawn of email newsletters (subscribe to ours if you havenāt yet!). Well, RSS is quite an interesting topic, and if you would like to read more about it, drop your comments below, and Iāll write a dedicated article for it!
Pages (Post Type: āpageā)
A post type: āpageā in WordPress is somewhat similar to posts, but they have some very important differences. Page is not displayed in a reverse sequential order. They are basically the main pages of your website, like About, Contact, Get in Touch, etc. Date and time stamp is also not on display.
Pages can have a hierarchical order where a page can be the parent or child of another page, thus, allowing you to create a page structure. For eg. in the About page of an organizationās website, you can have many pages like, Who We Are, Team, What Sets Us Apart, etc.
Normally, pages do not make use of Categories and Taxonomies but with plugins you can have that functionality at your disposal. Why?
Note:
You might get confused between differentiating and understanding the separation between post and page.
Look closely and understand, post type = ‘post’ is non-hierarchical, i.e., you cannot have sub-posts or a hierarchy of an article, right?….right?
Now, a post type = āpageā can have a hierarchy. For example, the About Us page of a website can have separate pages for information like The Team, The Culture, Approach, What Sets Us Apart, etc. All under one main page, i.e. About Us.
Attachments (Post Type: āattachmentā)
A post type: āattachmentā is a special post type that holds information about any media that is uploaded to your WordPress website. You may also know it as Media library. So, all the pictures, videos, gifs, infographics, etc. with all of its information, like alt text, size, format, etc. Attachments make use of the wp_postmeta table for storing extra information like metadata for images, videos, etc. You can find them all in one place, i.e. attachments.
Revision (Post Type: ārevisionā)
A post type: ārevisionā is a special post type, which creates a history of any specific post type(s). For bloggers, revision helps you rollback changes made to a current post to a previous version of that post type. The same process is followed for any other post type. Technically speaking, you cannot edit a revision directly unless you restore a revision. The wp_posts table stores all Revisions, like every post type.
What do Post Types offer?
In simple terms, it is post types that turn WordPress into a CMS from a blogging platform. WordPress post type supports you to organize and display content in a way that makes it easy for visitors/readers to understand the content on your website.
Also, you get to create and sort different types of content that provides greater flexibility and freedom to showcase and manage your content digitally.
Example of Post Types and its Uses
Let’s take an example of a blog about All-Thing Everything Books š. This blog will have different pages talking about the blog itself, the reviewers, featured, etc. This will require creation of separate pages. All praises to post type = ‘page’!
Now, in this book blog you will write different types of articles on publications, writing styles, genres, etc., thus, post type = ‘post’ to the rescue!
All of the images, covers, infographics, videos, etc. will be stored in post type = ‘attachment’. Thus, all your content, managed and neatly stored under one post type.
Now, you must wonder, a blog on books will require more post types like books, authors, reviews, etc. Guess what, you’re right! This can be achieved with custom post types (I will be talking about this in detail in the coming article).
I hope this example helps you understand post types and how they offer a complete CMS experience in WordPress!
Conclusion
I hope that you have got an idea of what post types in WordPress are and their importance. There is a lot more ground to cover as weāve just touched the surface of WordPress post types. So, this article sums it all up for you, understanding post types, what they are, and use-cases, and a bit more.
Let me know what your views are about post types, comments, ideas, thoughts or blog ideas are most welcome. In case of any doubts, feel free to comment or write to us at [email protected].
Those wondering about what comes next, well let me tell you, weāve just touched the surface of WordPress post types. It really is a very vast concept and key-feature to understand, especially if you plan on getting into the development side of it. The next article to read after (Our content mill is on it, youāll have detailed articles soooon!)
FAQs
As the question dictates, custom post types enable you to have custom functionalities that you feel are needed for your WordPress website. In a nutshell, WordPress custom post types offer functionalities that go beyond the realms of default post types, like posts, pages, etc. To know about it in detail, read Custom Post Types in WordPress.
An archive page in WordPress displays a list of all posts under a specific post type.
Well, creating a custom post type can be done in a lot of ways. The easiest way is to download a plugin and you can get started with creating custom post types and taxonomies. If you want to develop those without a plugin, weāre creating technical articles for those inclined towards the development side of WordPress too!
So, subscribe to our newsletter, and stay updated, because a lot of detailed and resourceful content on All-Thing Everything WordPress is headed your way!
Post type is a feature in WordPress that allows you to have different types of content on a single website, like posts, pages, images, videos, infographics, etc. It is post types that transforms WordPress into a full-scale CMS from a blogging platform.
WordPress default post types are those features that come bundled with the core WordPress software. Yes, you can have custom post types too, but, by default, there are 7 post types in WordPress in WordPress.
WordPress comes with 3 types of default post types that are visible to us on the Dashboard.
– Post (Post Type: āpostā)
– Page (Post Type: āpageā)
– Attachment (Post Type: āattachmentā)
– Revision (Post Type: ārevisionā)
– Navigation menu (Post Type: ānav_menu_itemā)
– Block templates (Post Type: āwp_templateā)
– Template parts (Post Type: āwp_template_partā)
There are 7 default post types in WordPress, out of which 3 are public (i.e. visible to all users), namely, post, page, and attachment. The other 4, namely, Revision, Navigation Menu (was present before, but after the introduction of blocks, became Navigation block), Block templates, and Template parts are not public (i.e. not visible on the dashboard).
Previous in the Beginner’s Guide ā> WordPress Themes and Plugins ā All You Need to Know!
No responses / comments so far.