Created
December 30, 2015 15:16
-
-
Save jesgs/58967bc81e51aa78b473 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change order parameter | |
* @param WP_Query $query WP query object | |
*/ | |
function mangapress_change_archive_order($query) | |
{ | |
$query->query['order'] = 'ASC'; | |
} | |
add_action('pre_get_posts', 'mangapress_change_archive_order') | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment