関数 get_author_template()
2014/12/17
定義ファイル :/blog/wp-includes/template.php
1 2 3 4 5 6 7 8 9 10 11 12 13 | function get_author_template() { $author = get_queried_object(); $templates = array(); if ( is_a( $author, 'WP_User' ) ) { $templates[] = "author-{$author->user_nicename}.php"; $templates[] = "author-{$author->ID}.php"; } $templates[] = 'author.php'; return get_query_template( 'author', $templates ); } |