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 »

Add Useful Links to WordPress Admin Bar

66

Add Links to WordPress Admin Bar

WordPress 3.1 introduced the admin bar, which adds admin options to the top of your pages as you browse your site (Assuming you’re logged in of course).

It’s easy to extend the bar to add new links of your own, or to remove links you don’t want (e.g. if the “Appearance” menu isn’t something you often need instant access to).

In this tutorial, we’ll be building a simple plugin that will let us add some handy links (e.g. a Twitter search for the current post, analytics, and ad sales), as well as remove the links we don’t want.

Read More »