Created
April 13, 2015 15:55
-
-
Save webmasterninjay/649f0e74981162904b05 to your computer and use it in GitHub Desktop.
Genesis custom loop
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 | |
// Genesis custom parameter loop | |
add_action('genesis_before_loop', 'jay_before_loop'); | |
function jay_before_loop () { | |
global $query_string; | |
query_posts($query_string . "&order=DESC&orderby=date"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment