SHARE
TWEET

reverse-post-order.php

jan_dembowski Jan 21st, 2012 146 Never
  1. <?php
  2. /*
  3. Plugin Name: Reverse the query to ascending order
  4. */
  5.  
  6. add_action( 'wp_head' , 'mh_reverse_query' );
  7. function mh_reverse_query() {
  8. global $query_string;
  9.    if ( is_home() ) {
  10.       query_posts($query_string . "&order=ASC");
  11.    }
  12. }
RAW Paste Data
Top