[wp-testers] Comments Order.....
Paul Robinson
pablorobinson at gmail.com
Thu Dec 4 15:29:51 GMT 2008
As far as I'm aware you don't need any of the stuff between the <?php
foreach(); ?> anymore. you just open a <ul> or <ol> and use <?php
wp_list_comments(); ?>.
I'm probably miles wrong so please someone correct me if I am.
Paul.
2008/12/4 Jason Gottschalk <Jason at syo.com>
> 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
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
More information about the wp-testers
mailing list