freelance web designer &
wordpress themes developer
rss

Blog

The guide to WordPress post types

22 November 2012

One of the most desired and anticipated features of WordPress 3.0 was the ability to add your own post types to WordPress which would let you to display and categorize different types of the content. The emergence of this feature has become a significant step forward in making WordPress fully-fledged content management system.

In this guide we will overview those steps that are important in the process of creating and using your own custom post types. What is actually a custom post type? If you know WordPress to some extent, you’ve possibly encountered with the default WordPress post types used for content creation, which are post and page.

As a matter of fact, almost all the content in any WordPress site is composed of the combination of posts and pages. Pages are mainly used for static websites whereas posts are generally used for the content that undergoes frequent updates. However, at some stage you may want to include a specific type of data in your website. At this point you would need to use a custom post type.

The reason why we usually create a custom post type is because we generally want it to look and act differently from a regular post. WordPress is a great system that makes it possible to customize the way the post is going to look like.

The next question is, how to do the listing and display all our events? Of course, displaying single events is useful, however its functionality is very strict and limited unless we can see all the events.

Actually, there are a couple of ways to display our custom post types, but none of these ways is simple and straightforward. One of the most common and simplest way to do would be to use a custom page template. Once you’ve done this procedure several times, you won’t find it complicated at all.

Related posts: