- Specialists state that loan
8 分钟 31 秒之前 - alkkdlkx
2 小时 24 分钟之前 - tmhvrb
2 小时 25 分钟之前 - vvqfyciu
2 小时 25 分钟之前 - detqjlm
2 小时 25 分钟之前 - bjebss
2 小时 25 分钟之前 - nlkepn
2 小时 25 分钟之前 - cwuuwc
2 小时 25 分钟之前 - kntqia
2 小时 25 分钟之前 - 自动的功能还是少用~
4 小时 14 分钟之前
该函数加载评论模板,并显示在单篇文章和页面中。
<?php comments_template( $file, $separate_comments ); ?>
$file
(字符串)(可选)将要加载的文件
默认值:/comments.php
$separate_comments
(布尔型)(可选)是否按评论类型分隔评论
默认值:false
使用其它评论模板
有时你可能希望在主题的不同部分显示不同评论效果。那么你需要新建一个替换文件(如short-comments.php)并按以下方式调用该文件:
<?php comments_template( '/short-comments.php' ); ?>
comments_template()位于wp-includes/general-template.php中。
get_header, get_sidebar, get_search_form, comments_template, get_footer()
发表新评论