Hello @tayfuntatar & @amicalmant ??
By default, the co-authors should be separated with ,
and the second-last and last co-authors are separated with and
. I assume that you have added the template tags to your themes as described on https://docs.wpvip.com/technical-references/plugins/incorporate-co-authors-plus-template-tags-into-your-theme/. The separates can be adjusted in the function call coauthors_posts_links()
.
The example on https://docs.wpvip.com/technical-references/plugins/incorporate-co-authors-plus-template-tags-into-your-theme/ shows the function call
coauthors_posts_links( null, null, null, null, false )
.
The definition of this function is as follows:
/**
* Outputs the co-authors display names, with links to their posts.
* Co-Authors Plus equivalent of the_author_posts_link() template tag.
*
* @param string $between Delimiter that should appear between the co-authors
* @param string $betweenLast Delimiter that should appear between the last two co-authors
* @param string $before What should appear before the presentation of co-authors
* @param string $after What should appear after the presentation of co-authors
* @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
*/
function coauthors_posts_links( $between = null, $betweenLast = null, $before = null, $after = null, $echo = true ){
return coauthors__echo('coauthors_posts_links_single', 'callback', array(
'between' => $between,
'betweenLast' => $betweenLast,
'before' => $before,
'after' => $after
), null, $echo );
}
When using the plugin with the Twenty Twenty-One theme without any adjustments, this is what I see on my end:
Link to image: https://d.pr/i/48Uooe
Changing the function call from
coauthors_posts_links( null, null, null, null, false )
to
coauthors_posts_links( ' | ', ' | ', null, null, false )
results in:
Link to image: https://d.pr/i/eZAvxQ
If you’re seeing and
or &
as separator, something must be overwriting this default functionality. I suggest deactivating all other plugins to test this plugin isolated. Alternatively, I suggest adjusting the function parameter as I explained above. I hope this helps to display the co-authors in the desired way.