Hi,
mein problem ist: Ich habe diesen Code:
PHP
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<div class="quote"><?php comment_text() ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
</li>
<cite><?php comment_author_link() ?> on <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('edit',' ',''); ?></a></cite>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
Alles anzeigen
von der Seite:Styling Your Wordpress Comments | Darren Hoyt Dot Com
in meiner Single.php
Immer wenn ich Dann aber einen Beitrag öffne steht anstelle der Kommentar:
ZitatWarning: Invalid argument supplied for foreach() in /users/nico-knoll/www/wp-content/themes/Das Design123/single.php on line 21
Ich ha keine Ahnung was ich machen soll :(
Vielleicht hatte jemand auch mal so ein Problem und kann mir helfen..
MfG
NK-Master