CPT Single Post Template with Content Check

This code is written to work with Pippin’s Easy Custom Post Types. While we’re making heavy use of Types & Views these days (check them out, they’re freaking awesome), we thought this code might be handy to someone out there in WP land.

We used this function to create a custom post type for listing attorneys at a law firm, saved as a post template called single-attorney.php.