Anmelden oder neues Benutzerkonto anlegen.
Doku » Template Tags/comment date
Inhaltsverzeichnis |
[bearbeiten] Beschreibung
Zeigt wann ein Kommentar gepostet wurde. Dieser Tag muss innerhalb der Schleife (The Loop) aufgerufen werden, oder in der Kommentar-Schleife.
[bearbeiten] Verwendung
%%%<?php comment_date('format'); ?>%%%
[bearbeiten] Beispiel
Zeigt das Kommentardatum im Format "6-30-2004":
Kommentar gepostet am <?php comment_date('n-j-Y'); ?>
[bearbeiten] Parameter
- format
- (string) Formatierung des Datums. Standardeinstellung erfolgt in WordPress beim Datumsformat. Siehe auch Formatierung von Datum und Zeit.
[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_date