Make a Template for Taxonomies & Post Type Archives

30

Custom Post Type Taxonomies

On Monday, we set up a custom post type in WordPress for listing events. We also added Event Tags to them, and created a template for showing off the individual events.

Today, we want to look at the overall Events page. We’re going to list events by the date they occur, and work back in our tags so users can get a list of only the events that apply to them.

Read More »

Events List With Custom Post Types and Taxonomies

46

Events List Script

A 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!)

Read More »