I am using Co-Authors Plus 2.6.1 and I am trying to show the latest post of each author in the sidebar. Here is the code I am using: ($aUsersID is the sorted user-id list)
foreach ( $aUsersID as $iUserID ) {
$auth = 'author=' . $iUserID;
...
$author_posts = new WP_Query($auth);
...
...
}
This works great for single-author posts however it does not show the post of a co-author unless s/he is the original author. I can get around this by searching all posts for each author and check whether s/he is in the coauthors list or not and break the while if the case is satisfied. This looks like a definite solution but it is not quite efficient. How can I find a way out besides this one?
Thanks in advance...