I am using co-author plus and I have posts in my site that are done by multiple authors. I would like that when I click on the co-author’s author page, I will be able to get the posts that he/she co-authored.
For now, I am using a vanilla WP_Query call to primary authors. I followed db trail and the co-authors are posted on the wp_term_taxonomy table, but I am unsure on how to query and get that data.
Here is my paramters:
$arg = array(
'author' => strval($user_id),
'post_per_page' => 10,
'post_status' => 'publish',
'paged' => strval($page)
);