関数 get_post_type_archive_template()
2014/12/17
関数 get_post_type_archive_template()
定義ファイル :/blog/wp-includes/template.php
1 2 3 4 5 6 7 8 9 10 11 | function get_post_type_archive_template() { $post_type = get_query_var( 'post_type' ); if ( is_array( $post_type ) ) $post_type = reset( $post_type ); $obj = get_post_type_object( $post_type ); if ( ! $obj->has_archive ) return ''; return get_archive_template(); } |