模板文件包括三类:
第一类:
第二类:
第三类:
第一类:
get_header()
get_footer()
get_sidebar()
get_template_part()
get_search_form()
get_query_template()---???
get_template_part( 'template-parts/content/content' );
对应的文件:
template-parts/content/content.php
get_template_part( 'template-parts/content/content', 'none' );
对应的文件:
template-parts/content/content-none.php