Archive of All Posts and Pages Authored or Co-Authored

In order to show posts and pages while also supporting the use of co-authors plus simply add the following to the template “author.php”.

add_filter( 'beans_loop_query_args', function() {
	return array(
		'posts_per_page' => 10,
		'paged' => get_query_var( 'paged' ),
		'post_type' => array('post', 'page'),
		'author_name' => get_the_author_meta('user_nicename'),
		'orderby' => 'post_date'
	);
});

Filed under: WordPressTagged with: , ,

No comment yet, add your voice below!


Add a Comment

Your email address will not be published. Required fields are marked *

Comment *
Name *
Email *
Website