模板文件包括三类:
第一类:
第二类:
第三类:
第一类:
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
————————————————
版权声明:本文为CSDN博主「赵蔚冬」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012809520/article/details/89345990