WordPress模板包含标签:comments_template()详解
描述 加载评论模板。只能用于单篇 文章 或 页面 来显示评论,如果不是这些页面,将没办法显示。 用法 <?php comments_template( $file, $separate_comments ); ?> 参数 $fi...
描述 加载评论模板。只能用于单篇 文章 或 页面 来显示评论,如果不是这些页面,将没办法显示。 用法 <?php comments_template( $file, $separate_comments ); ?> 参数 $fi...
描述 引入 searchform.php 文件来显示搜索表单。 用法 <?php get_search_form( $echo ); ?> 参数 $echo (布尔值) (可选) 如果是 true 则输出表单; false 则返...
描述 引入当前主题的模板文件 sidebar.php 。如果使用特定的名字 ($name) ,那么就会引用包含这个特定名字的模板文件 sidebar-{name}.php 。 如果主题没有 sidebar.php 文件,就会引入默认的 wp...
描述 引入当前主题的页脚文件 footer.php,如果使用特定的名字,那么就会调用这个特定名字的页脚文件 footer-{name}.php 。 如果主题没有 footer.php 就会引入默认的 wp-includes/theme-co...
描述 从当前主题中引入 header.php 模板文件。如果名字是特定的,那么包含特定名称的头部文件 header-{name}.php 就会被引入。 如果主题没有 header.php 文件,就会引入默认文件 wp-includes/th...