• Resolved do77

    (@do77)


    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','&nbsp;&nbsp;',''); ?></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)
  • admin – settings – discussion
    you can configure that

    Thread Starter do77

    (@do77)

    Thanks samboll,

    I did configure it there but unfortunately it doens’t work. It neither breakes it into pages nor does it show the most recent comments first. I read that some people have problems because of older versions of WP. I have installed WP 2.7.1 but it still does not work.

    Any idea?

    Thank you
    do77

    Thread Starter do77

    (@do77)

    Anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘comment break – coding’ is closed to new replies.