Doku » Template Tags/comment ID
Inhaltsverzeichnis |
[bearbeiten] Beschreibung
Zeigt die numerische ID eines Kommentars an. Dieser Tag muss innerhalb des Loops oder in der Kommentar-Schleife aufgerufen werden.
[bearbeiten] Verwendung
%%%<?php comment_ID(); ?>%%%
[bearbeiten] Beispiele
[bearbeiten] Beispiel 1
<p>Dies ist Kommentar <?php comment_ID(); ?> von allen Kommentaren.</p>
[bearbeiten] Beispiel 2
<div id="comment-<?php comment_ID() ?>">Kommentiert von <?php comment_author() ?>: </div> <div class="comment-text"><?php comment_text() ?></div>
[bearbeiten] Parameter
Dieser Tag hat keine Parameter.
[bearbeiten] Ähnlich
comments_number, comments_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
Original Dokument: http://codex.wordpress.org/Template_Tags/comment_ID





