WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢(qián)
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營(yíng)銷
- 虛擬主機(jī)管理系統(tǒng)
- 開(kāi)放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress:Template Tags/comment ID
來(lái)自站長(zhǎng)百科
描述[ ]
顯示評(píng)論的ID數(shù)字。必須在The Loop或者評(píng)論loop內(nèi)部使用這個(gè)標(biāo)簽。
用法[ ]
%%% <?php comment_ID(); ?> %%%
例子[ ]
默認(rèn)用法[ ]
<p>This is comment <?php comment_ID(); ?> for all comments.</p>
評(píng)論ID 作為Anchor ID[ ]
使用評(píng)論ID作為一個(gè)評(píng)論的anchor id。
<div id="comment-<?php comment_ID() ?>">Comment by
<?php comment_author() ?>: </div> <div class="comment-text"><?php comment_text() ?></div>
參數(shù)[ ]
這個(gè)標(biāo)簽沒(méi)有參數(shù)。
相關(guān)的[ ]
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss