Viewing 1 replies (of 1 total)
  • You can add taxonomy and look for nicename, not sure if this helps in your case,

    $user_info = get_userdata($curauth->ID);
    $user_nicename = $user_info->user_nicename;
    $loop = new WP_Query( array( ‘post_type’ => ‘posts’, ‘posts_per_page’ => 100,’tax_query’ => array(
    ‘taxonomy’ => ‘author’,
    ‘field’ => ‘slug’,
    ‘terms’ => $user_nicename,
    ), ) );

Viewing 1 replies (of 1 total)
  • The topic ‘Getting co-authors posts to show on author.php’ is closed to new replies.