I have a website where I am mostly posting translations. Therefore, I want to show name of the author of the original post instead of me on the author name area. How can I do this?
Here are three possible approaches:
A normal WP installation already has custom fields which you can add to your post. So you could use those to add the original author's name to. The only problem is that general themes usually do not display
the_meta, because they do not know what to expect. In your case you would want to replace
the_authorin your theme with
the_meta(don't mess with the original theme files, use a child theme!)
Easier, but a bit hacky: add the original authors to the user list. They don't need to know they have an account, just provide bogus e-mail addresses and don't let WP send their password to them. Now you can simply assign them as authors and they will have their own author page as well.
function should return the name of the author of the post. See https://codex.wordpress.org/Function_Reference/the_author .
Your theme will have to use that function in the loop that displays the post meta.
Just create a new author or user in wordpress and then just change the author from post quick edit option to that original author
this function will return author name, you can change it on below path.
Go to your database -> users table -> change (display_name)