Created
February 28, 2015 22:17
-
-
Save leepettijohn/c6c26b9e4d596f1eab3e to your computer and use it in GitHub Desktop.
Order alphabetically
This file contains 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
add_action('genesis_before_loop', 'child_before_loop'); | |
function child_before_loop () { | |
if ( !is_page() ) { | |
global $query_string; | |
query_posts($query_string . "&order=ASC&orderby=title"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment