How to Make Your Own Events Listing Using Custom Post Types in WordPress

MakeUseOf | 4/15/2019 | James Bruce
doona07 (Posted by) Level 3
Click For Photo: https://static.makeuseof.com/wp-content/uploads/2018/01/wordpress-guide-994x400.jpg

One of the advantages of using WordPress is its sheer flexibility. It’s not just for posts and pages: custom post types can extend the core features to virtually anything.

Let’s take a look today at what you could do with custom post types, as well as a quick practical example of how to create an event listing using a custom post type called Event.

Note - Tutorial - Purposes - Code - Custom

Note: This tutorial should be considered for educational purposes only, so you can learn the code used to create custom post types. If you actually want a great events listing plugin for your WordPress site, try The Events Calendar, which is well developed and free.

What Are Custom Post Types in WordPress?

WordPress - Site - Types - Content - Blog

Typically, a WordPress site consists of two types of content: dated blog posts, and static pages. Most of us who have set up a WordPress blog are familiar with the fact that pages should be used for things like “About me” or “Contact information”, while regular posts go to your blog.

Set Up Your Blog With WordPress: The Ultimate Guide

Want - Blog - WordPress - Blogging - Platform

Want to start your own blog but don't know how? Look to WordPress, the most powerful blogging platform available today.

But beyond that, what if you want to add another special kind of content that doesn’t really fit into the chronological order of the blog and certainly isn’t static? That’s where custom post types come in.

Request - Club - Group - Sites - Kind

A fairly common request for club or group sites is to have some kind of events calendar. One solution that could be applied is to create a separate Events category of posts. The problem with this is they’ll be displayed in the main blog timeline, and we really ought to separate the two concepts entirely.

For that purpose, let’s create a new post type called event, which will have its own separate section of the admin...
(Excerpt) Read more at: MakeUseOf
Wake Up To Breaking News!
Sign In or Register to comment.

Welcome to Long Room!

Where The World Finds Its News!