WordPress has been around since 2003, and for several years was mostly used to run blogs or personal websites.
Until a few years ago a majority of the websites powered with WordPress were still blogs or small sites, and it may also be true today.
However, ever since the ability for developers to create custom post types was introduced in 2010 with version 3.0, WordPress has been used to power many more types of websites.
We’re going to show you 5 ways in which you can use WordPress custom post types.
What are Custom Post types?
By default, WordPress provides four post types: “Post”, “Pages”, “Attachment”, & “Revision”.
Internally, all of these post types are stored in the same database table, although they are differentiated by a column called post_type.
Custom post types allow us to break out beyond “Post”, “Pages”, “Attachment”, & “Revision”.
Custom post types were added in version 3.0. Before that there was no easy way for developers to create a custom post type.
Now you can create any kind of post type using either free plugins such as Custom Post Type UI or by simply adding a few lines of code to your themes functions.php file.
Portfolio is perhaps the most widely used example of custom post type. Premium theme developers had a major influence on this. As designers and developers are the first to adopt new technologies its no surprising that they started using custom post type to display their work.
Among many available open source CMS’s, WordPress is considered the simplest. And being the favorite app of many developers it was only time that someone figured out a way to use it for e-commerce websites.
A custom post type for e-commerce would be Products. You can use this along with categories or custom taxonomies to arrange products in different categories.
With WordPress E-commerce plugins such as WooCommerce gaining popularity and having reached the milestone of a million downloads, products would have to be the 2nd most used post type.
#3. Question & Answer Website
By default, WordPress offers commenting & user management systems.
You can combine these with custom post types to create sites like Stackoverflow.com. A question can be treated as a custom post type and answers as comments.
#4. Real Estate Listings
A typical real estate listing consists of property details along with other details such as location, agent, etc. This can be accomplished using a custom post type for property listing.
Combined with custom meta boxes this can be used to create complex real estate listing with details such as size, location on map, property types, etc.
Most directories on the web have a similar structure of categories and listings, which also is what WordPress offers. Whether it’s a directory of local restaurants or a job listing portal, custom post types can be used to create listings and comments can be used to allow users to leave reviews.
Find out more
Here are OSTraining tutorials to help you learn more about custom post types:
- Our 40+ video class on Custom Content Types
- How to Activate WordPress Post Formats
- What are Custom Post Types in WordPress?
- What are Custom Taxonomies in WordPress?
- Easily Add Custom Content Types to WordPress
- Create a Movie Database with Custom Content Types
- Custom Content Types on WordPress Homepages