Definition:
function get_single_template() {}
Retrieve path of single template in current or parent template.
Source code
function get_single_template() {
$object = get_queried_object();
$templates = array();
$templates[] = "single-{$object->post_type}.php";
1691

February 12, 2011 


No comments yet... Be the first to leave a reply!