Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Reverse the query to ascending order
- */
- add_action( 'wp_head' , 'mh_reverse_query' );
- function mh_reverse_query() {
- global $query_string;
- if ( is_home() ) {
- query_posts($query_string . "&order=ASC");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement