WP 3.3 Sortierung Kommentare
Hallo zusammen, ich habe das gleiche Problem.
Im Backend wurde eingestellt, dass die neusten zuerst kommen im Frontend werden allerdings die ältesten zuerst gezeit.
Hier mal der entsprechende Code meiner Kommentare. Vermute mal, das dort irgenwo was falsch ist.
Auszug aus der comments.php
<br />
<?php if($comments) : ?>
<?php foreach($comments as $comment) : ?>
<?php if ($comment->comment_approved == '0') : ?>
<p style="color: green">Vielen Dank! Dein Eintrag wird in Kürze freigeschaltet.</p>
<?php endif; ?>
<div class="comment-wrap">
<div class="avatar"><?php echo get_avatar( get_the_author_id(), 40 ); ?></div>
<div class="mini"></div>
<div class="comment-text">
<div class="autor"><h3><?php comment_author_link(); ?></h3></div>
<small>schrieb am <?php comment_date(); ?> um <?php comment_time(); ?> Uhr ...</small><br />
<img src="/wp-content/themes/CavaliereTemplate/images/comment-line.png" alt="Linie" />
<div class="comment-text"><?php comment_text(); ?></div>
<hr class="comment-line" />
</div>
<div class="comment-bg"></div>
</div>
<?php endforeach; ?>
<?php else : ?>
<p>Es gibt noch keine Einträge.</p>
<?php endif; ?>
<br />
Alles anzeigen
So hab ich im Template integriert:
<strong><?php comments_number('Es gibt noch keinen Eintrag.', 'Es ist 1 Eintrag vorhanden.', 'Es sind % Einträge vorhanden.'); ?></strong>
<br />
<?php comments_template(); ?>
In der wp-comments Datei irgendwas umzuschreiben finde ich nicht so toll, daher wäre ich für jede Hilfe sehr dankbar.
Viele Grüße