Posted By

alp on 04/03/11


Tagged

wordpress theming


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

mfgalex
stonetatara
hkamci


Reverse WordPress Comment Order to Show the Latest on Top


 / Published in: PHP
 

URL: http://wpmu.org/daily-tip-how-to-reverse-wordpress-comment-order-to-show-the-latest-on-top/

place code in functions.php

  1. if (!function_exists('iweb_reverse_comments')) {
  2. function iweb_reverse_comments($comments) {
  3. return array_reverse($comments);
  4. }
  5. }
  6. add_filter ('comments_array', 'iweb_reverse_comments');

Report this snippet  

You need to login to post a comment.