Tag Template: comments_number
Descrizione
Displays the total number of comments, Trackbacks, and Pingbacks for a post. This tag must be within The Loop.
Utilizzo
<?php comments_number('zero','one','more','number'); ?>
Esempio
<p>L'articolo corrente ha
<?php comments_number('no responses','one response','% responses'); ?>.</p>
Parametri
zero
(stringa) Testo da visualizzare quando non vi è alcun commento. Il valore predefinito è'0 Comments'.
one
(stringa) Testo da visualizzare quando vi è un solo commento. Il valore predefinito è'1 Comment'.
more
(stringa) Testo da visualizare quando vi è più di un commento. il carattere % viene rimpiazzato con il numero dei commenti, quindi se vi fossero cinque commenti'sino ad ora sono %'verrà visualizato come "sino ad ora sono 5". Il valore predefinito è'% Comments'.
number
(intero) Numero dei commenti. DI base fornisce il numero totale di commenti, Trackback e Pingback.
Correlati
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, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss
|
Come passare Parametri ai Tag tramite parametri in stile PHP |
Ultima modifica il 05/03/2006 ore 08:16