Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Last active Dec 18, 2020
Embed
What would you like to do?
Add pagination to Genesis Author Archives
//* Add pagination to Genesis Author Archive
function author_posts_per_page( $query ) {
if (!is_admin() && is_author() )
$query->set( 'posts_per_page', 5 );
}
add_filter('parse_query', 'author_posts_per_page');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment