Loads a template part into a template.
模板调用函数
官网:https://developer.wordpress.org/reference/functions/get_template_part/
get_template_part( string $slug, string $name = null )
举例:
<?php get_template_part( 'partials/content', 'page' ); ?>
个人建站知识管理
Loads a template part into a template.
模板调用函数
官网:https://developer.wordpress.org/reference/functions/get_template_part/
get_template_part( string $slug, string $name = null )
举例:
<?php get_template_part( 'partials/content', 'page' ); ?>
Optimized by WPJAM Basic。