CPT Single Post Template with Content Check

image_pdfimage_print

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.

stuff we dig

FYI: yes, the above are affiliate links, so we do make a small amount of money if you follow them over and buy what they're selling. Thank you for helping pay our hosting costs!

Dave Kuhar

Dave runs Transmit Studio, a media creation lab in San José. He's built more websites with WordPress than he can remember. He likes hearing himself talk and writing about himself in third person.

Leave a Comment