Having this sample code below, how could I add the co-author information to the args array, in order to also show the posts where an user is also a co-author?
Any help would be appreciated. Thanks.
<?php global $author;
if(isset($_GET[‘author_name’])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<?php
$blogurl = get_bloginfo(‘template_url’);
$authid = get_the_author_meta(‘ID’);
?>
<?php
$args = array( ‘paged’ => $paged,’post_type’ => ‘gtre’, ‘posts_per_page’ => $posts_per_page, ‘author’ => $curauth->ID);
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post);
?>