Definition:
function get_author_template() {}
Retrieve path of author template in current or parent template.
Source code
function get_author_template() {
$author = get_queried_object();
$templates = array();
$templates[] = "author-{$author->user_nicename}.php";
1176

February 12, 2011 


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