comment break – coding
-
Hi,
I would like to make some changes in my code so that it automatically breakes my comments into pages and shows the newest one’s first. I believe this is the part of the code that has to be changed but I don’t know how to do that. Does anyone has an idea?
<?php if ( have_comments() ) : ?> <div id="comment-list"><?php comments_number('No chops', 'One chop!', '% chops!' );?></div> <?php foreach ($comments as $comment) : ?> <div class="comment-left" id="comment-<?php comment_ID() ?>"> <div class="comment-meta"> <a href="http://en.gravatar.com/"><img src="<?php gravatar("R", 40); ?>" alt="Avatar" class="avatar" /></a><br /> <cite><?php comment_author_link() ?></cite> <?php if ($comment->comment_approved == '0') : ?> <em>Your chop is awaiting moderation.</em> <?php endif; ?> <br /> <span class="comment-metadata">on <?php comment_date('F jS, Y') ?><br /> <?php edit_comment_link('edit',' ',''); ?></span> </div> <div class="comment-txt"><?php comment_text() ?></div> <br clear="all" /> </div> <?php endforeach; /* end for each comment */ ?>
Thanks guys,
do77
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘comment break – coding’ is closed to new replies.