Skip to content

Instantly share code, notes, and snippets.

@riceguitar
Last active August 29, 2015 14:24
Show Gist options
  • Save riceguitar/634f0cec9259cdea9310 to your computer and use it in GitHub Desktop.
Save riceguitar/634f0cec9259cdea9310 to your computer and use it in GitHub Desktop.
Genesis - Reverse Post Order
/** 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