Definition:
function get_archive_template() {}
Retrieve path of archive template in current or parent template.
Source code
function get_archive_template() {
$post_type = get_query_var( 'post_type' );
$templates = array();
if ( $post_type )
$templates[] = "archive-{$post_type}.php";
1148

February 11, 2011 


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