I create the post and then copy the content written by my guess writers and I want to just put that writter as only author so I add him and then "remove" my name.
when displaying the link of the author in the post with your function it works fine but the creator of the post remains as the author internally. Therefore using other plugins as yoast seo or author box it displays the wrong author in meta data, etc.
could you have a look at this??