模板标签-comment_date()

0条评论

说明

该标签显示评论的发表日期。该标签必须用在WordPress主循环(loop)或评论循环中。

用法

 <?php comment_date('d'); ?> 

示例

以"6-30-2004"格式显示评论日期:

Comment posted on <?php comment_date('n-j-Y'); ?>  

参数

d

(字符串)日期格式。默认为WordPress的日期格式。参见设置日期和时间格式

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.