You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin filters the_author() to use coauthors() instead, and likewise for the_author_posts_link() and coauthors_posts_links(). Now, when I rely on the filter and just use either of the author functions in a theme, the user who put the post online is being displayed instead of the co-authors. When I put the two coauthor equivalents in the theme directly, however, everything works as intended. Hence I assume that the filters might be broken.
I stumbled across this with one of my own themes and when I tried to make the Jetpack mobile theme compatible to Co-Authors Plus as per Automattic/jetpack#825. I have used the same database for testing both themes, though, so I am not sure others are experiencing the same issue.
I originally assumed the issue was related to both filters turning off echo in their equivalent coauthor functions, but changing that bit did not help. There is one instance when the filter does seem to be working: when get_the_author() is called from within the loop but outside of specific posts, like in the heading for author pages in the Jetpack mobile theme.
The text was updated successfully, but these errors were encountered:
https://github.com/Automattic/Co-Authors-Plus/blob/3.1.1/php/class-coauthors-template-filters.php#L10
The plugin filters
the_author()
to usecoauthors()
instead, and likewise forthe_author_posts_link()
andcoauthors_posts_links()
. Now, when I rely on the filter and just use either of the author functions in a theme, the user who put the post online is being displayed instead of the co-authors. When I put the two coauthor equivalents in the theme directly, however, everything works as intended. Hence I assume that the filters might be broken.I stumbled across this with one of my own themes and when I tried to make the Jetpack mobile theme compatible to Co-Authors Plus as per Automattic/jetpack#825. I have used the same database for testing both themes, though, so I am not sure others are experiencing the same issue.
I originally assumed the issue was related to both filters turning off
echo
in their equivalent coauthor functions, but changing that bit did not help. There is one instance when the filter does seem to be working: whenget_the_author()
is called from within the loop but outside of specific posts, like in the heading for author pages in the Jetpack mobile theme.The text was updated successfully, but these errors were encountered: