Support » Plugins and Hacks » Nano Plugin Manager » Don't Sort All Categories

Don't Sort All Categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • Checking in to see if anyone has a solution for this.



    @jhdemicco, I just did this and am happy to share. Copy the following XML into a file with an XML extension and import it into the plugin manager: (1) modify the ‘Release News’ to whatever category name you want to sort and (2) change the ‘post_modified’ to the wp_post table column name you want to sort by and (3) change DESC to ASC if you want to go ascending:

    <name>Sort Posts by Last Modified</name>
    <description>Sorts all your posts by Last Modified.</description>
    if(!is_admin() && is_category('Release News') ){ return 'post_modified DESC'; } else{ return $orderby; }


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't Sort All Categories’ is closed to new replies.