- Home
- Categorie
- Coding e Sistemistica
- WordPress
- Cambiare ordine commenti
-
Cambiare ordine commenti
Ciao a tutti volevo chiedervi come posso fare a invertire l'ordine dei commenti perchè da wordpress non va, volevo cambiarlo nel codice
ecco il mio codice
[HTML]<a name="comments"></a>
<h6 class="comments">Commenti</h6>
<div id="commentlist">
<?php foreach ($comments as $comment) : ?>
<? if ($comment->comment_type != "trackback" && $comment->comment_type != "pingback" && !ereg("<pingback />", $comment->comment_content) && !ereg("<trackback />", $comment->comment_content)) { ?>
<a name="comment-<?php comment_ID() ?>"></a>
<div class="<?php if ( $comment->comment_author_email == get_the_author_email() ) echo 'commetmainauthor'; else echo 'commetmain' ?>" id="comment-<?php comment_ID() ?>">
<div class="commet_left"> <span class="comment-author">[/HTML]