Skip to content

Instantly share code, notes, and snippets.

@Dinamiko Dinamiko/ep_args.php
Created Feb 15, 2015

Embed
What would you like to do?
/**
* 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
You can’t perform that action at this time.