Last active
August 29, 2015 14:24
-
-
Save riceguitar/634f0cec9259cdea9310 to your computer and use it in GitHub Desktop.
Genesis - Reverse Post Order
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
/** Replace the standard loop with our custom loop */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_do_custom_loop' ); | |
function child_do_custom_loop() { | |
global $paged; // current paginated page | |
global $query_args; // grab the current wp_query() args | |
$args = array( | |
'order' => ASC, // exclude posts from this category | |
); | |
genesis_custom_loop( wp_parse_args($query_args, $args) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment