Creating custom post types is easy. Finding them afterwards…maybe not so much. Background Over the course of the project I’m working on, I found myself creating five different custom post types and four custom taxonomies. They accreted as I discovered more about the content. (Let this be a lesson to all you developers: start with a thorough content audit so you know what post types, taxonomies, and custom templates you need from the beginning.) The first post type I created was “Case Studies,” because it was immediately clear that these needed to be something separate from pages. Each Case Study has a “Project Area” taxonomy. So far, so good. I created my post type/taxonomy registration plugin, uploaded it, activated it, and presto! Case Studies showed up below Posts in my WordPress admin menu. Add some content, create a single_yld_case_studies.php and an archive_yld_case_studies.php template, and we’re good to go. There was the inevitable fiddling with the CSS and there were a few tricks in the code to get the archive to display in columns sorted by Project Area, but it was all pretty straightforward. As the project progressed, I came to the conclusion that Careers needed to be a post
Share This