模板标签-comment_ID()

0条评论

说明

该标签显示评论的数值型ID。该标签必须用在WordPress主循环(loop)或评论循环中。

用法

 <?php comment_ID(); ?> 

示例

默认用法

<p>This is comment <?php comment_ID(); ?> for all comments.</p>

将评论ID作为锚ID

将评论ID作为评论的一个锚ID。

<div id="comment-<?php comment_ID() ?>">Comment by 
<?php comment_author() ?>: </div>
<div class="comment-text"><?php comment_text() ?></div>

参数

该标签无参数。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许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.