[wp-testers] Comments Order.....
Jason Gottschalk
Jason at SYO.Com
Thu Dec 4 15:12:08 GMT 2008
Hello DD32,
Is this the $comments array you are referring to? Is there an easy way to change this to use wp_list_comments() ?
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
<?php comment_text() ?>
</li>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
Tuesday, December 2, 2008, 7:46:01 PM, you wrote:
DD32> It affects order on all posts/pages which utilise wp_list_comments(), I'm
DD32> not sure if it affects themes which directly use the $comments array,
DD32> Hopefully i'll be corrected on that though.
DD32> On Wed, 03 Dec 2008 11:33:28 +1100, Jason Gottschalk <Jason at syo.com> wrote:
>> Hello Wp-testers,
>> Does this setting:
>> Settings->Discussion
>> Comments should be displayed with the [newer/older] comments at the top
>> of each page
>> affect ALL comments? or just the ones AFTER you change the setting?
>> I just changed it from older to newer, and it hasn't reversed the
>> order.....
DD32> _______________________________________________
DD32> wp-testers mailing list
DD32> wp-testers at lists.automattic.com
DD32> http://lists.automattic.com/mailman/listinfo/wp-testers
--
Best regards,
Jason Gottschalk mailto:Jason at SYO.Com
SYO Computer Services and Biometric Controls
586-286-2557
More information about the wp-testers
mailing list