infovore + posttypes   1

Setting templates for WordPress 3.0 Custom Post Type « Two Thirds Design
"The template used for a custom post view is decided by the ‘get_single_template()’ function in the wp-includes/theme.php file.  And it basically tells locate_template() to look for single-’post_type’.php or single.php. So the simplest way to customise the way a custom post is displayed is to add a template file to your theme with the name single-xxxxxx.php" Oh. That makes life simpler.
wordpress  php  templating  posttypes 
october 2011 by infovore

Copy this bookmark: