Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Created February 15, 2015 12:34
Show Gist options
  • Save Dinamiko/6e17a9836432812e5070 to your computer and use it in GitHub Desktop.
Save Dinamiko/6e17a9836432812e5070 to your computer and use it in GitHub Desktop.
/**
* Modifica argumentos de WP_Query
*/
add_filter( 'ep_args', 'custom_ep_args' );
function custom_ep_args( $args ) {
$args['posts_per_page'] = 10;
$args['order'] = 'ASC';
$args['orderby'] = 'author';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment