// template variation global $post; $tplkey = get_post_meta($post->ID, 'template', true); // load custom single post template if ($tplkey == true) { include_once TEMPLATEPATH.'/page-'.$tplkey.'.php'; } else { include_once TEMPLATEPATH.'/page-normal.php'; } ?>