Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Created February 28, 2015 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leepettijohn/c6c26b9e4d596f1eab3e to your computer and use it in GitHub Desktop.
Save leepettijohn/c6c26b9e4d596f1eab3e to your computer and use it in GitHub Desktop.
Order alphabetically
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