Hallo,
ich habe in meiner Sidebar eine Liste aller Artikel einer bestimmten News eingebaut. Neben dem Titel will ich nun das Datum und die Anzahl der Kommentare anzeigen lassen. Das mit dem Datum funktioniert. Nur das mit den Kommentaren nicht. Es wird immer "0 Kommentare" angezeigt, obwohl das nicht der Tatsache entspricht.
Der Code ist folgender:
PHP
<?php
$catposts = get_posts('numberposts=10&category_name=news');
foreach($catposts as $post) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<ul><font size="1" color="#727272"><?php the_time('d. M Y') ?> | von <?php the_author(); ?> | <?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?></font></ul>
</li>
Kann mir jemand helfen?