co-authors plugin – inline listing
solved using for loop instead of foreach: function inl_users() { if ( function_exists( ‘get_coauthors’ ) ) { $coauthors = get_coauthors(); for ($i = 0; $i < count($coauthors); $i++){ $autArray[] = ‘<a href=”https://wordpress.stackexchange.com/questions/404167/. get_author_posts_url( $coauthors[$i]->ID ) .”>’ . $coauthors[$i]->display_name . ‘</a>’; } echo implode(“, “, $autArray); } does anoyone know why?