1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

1.7 How To Post Change Post Order

Discussion in 'General Troubleshooting' started by robin007, Dec 23, 2016.

  1. robin007

    robin007 Well-Known Member

    how to change the post order into reverse

  2. valMETNG

    valMETNG Administrator Staff Member Admin

    Those posts are showing by descending date order. If you want to reverse the order to ascending, I believe you can change the DESC to ASC on line 106 of /plugins/bookmarking/libs/BookmarkingFunctions.php:
    $h->vars['orderby'] = 'P.post_date ASC';
  3. robin007

    robin007 Well-Known Member

    it's not working for me.
  4. valMETNG

    valMETNG Administrator Staff Member Admin

    My apologies as I didn't look closely enough at the code. The function prepareListFilters (starting at line 163) has individual settings for the variable orderby. So if you switch all the variable definitions for post_date DESC to post_date ASC (or just the ones you want - e.g. top on line 236, default on line 243), that should take care of it.

Share This Page