Hardcore Custom Post Types

This is for Plugin and Theme Developers who are comfortable with PHP!


Hardcore WordPress Post Types

Custom Post Types were a watershed feature added to WordPress 3.0 in 2010. Since then there has been an explosion of WordPress use for all types of sites, not just for blogs. But as with most powerful new features the reality is that taking Custom Post Types to their limit can take thousands of hours of trial and error.

But why spend all those hours with a sore forehead when you can bypass most of the effort by attending this presentation/workshop? This will be a DOUBLE LENGTH workshop and EVERYTHING will be done in PHP code in WordPress theme’s functions.php file while at the end we’ll convert to a plugin.

Here’s what you’ll learn how to do:

– Define a Custom Post Type in PHP
– Configure the edit screens for Posts and Pages
– Set up Custom Columns in the post list admin screen
– Set up Custom Sorts and Filters in the post list admin screen
– Create Custom Meta Boxes with custom form fields
– Add Custom Meta Boxes for parent/child Post Types
– Query Custom Post Types within Theme files
– Create Custom Taxonomies and Assign to any Post Type, even Posts and Pages
– Add a Parent Post Field in a Metabox of the Post Editor
– Create Hierarchical URLs for Hierarchical Custom Post Types
– Recognize and Bypass the various gotchas you’ll run into,
– AND maybe a few other things that come up as questions during the workshop.

This is designed to be a FAST-paced workshop for people who are comfortable using PHP. We’ll take suggestions from the audience for what kind of post type to build so come with ideas. Then we’ll show a series of code snippets built from scratch for you to see how each one comes together. And we’ll make mistakes while we’re working so you can see how to get past the mistakes you will inevitably make.

If you are really saavy and have a local install of WordPress on your laptop you can work hands-on in real time and immediately see how everything work. But it you are not ready to follow along in real time we’ll give you access to a link at the end of the session where you can download all the code.

PRE-REQUISITES:
– Experience modifying PHP in themes and/or plugins.

PREPARATION FOR THOSE WANTING TO FOLLOW ALONG:
– A New Installation of WordPress 3.3
– An empty child theme based on TwentyEleven
– A high quality text editor/IDE (PhpStorm highly recommended)
– A local installation of WordPress (Apache + PHP + MySQL + WordPress)
See: http://www.google.com/search?q=setting+up+a+local+wordpress-install

DON’T FORGET:
– Come prepared with some ideas for a post type we can build.