get_home_template
调用当前模板或父模板的home模板文件home.php
if ( 'posts' == get_option( 'show_on_front' ) ) {
include( get_home_template() );
}
首先尝试调用'home.php'
,如果找不到则调用 'index.php'
用法:
<?php get_home_template() ?>
返回值:
(string)
当前模板或父模板的home模板。