Events List With Custom Post Types and Taxonomies
45A few weeks back, we put together a way of adding events to WordPress and displaying them in an easy-to-read list. It was simple to maintain and it worked well, but it didn’t take advantage of all WordPress offers.
In this 2-part tutorial, we are going to extend our events list script to set up a new post type purely for the events, and create a new taxonomy for tagging our events. We will then be able to:
- Organize our events easily (e.g. If we’re running WordPress classes, we could label them as Beginner, Intermediate, or Advanced)
- Create templates for event lists and individual events.
- Separate events out of the main post list (So they won’t automatically appear on the homepage anymore).
- Add new events more conveniently in the admin panel (Especially when we add metaboxes in a later post!)