How to add a guest author’s name to your post

So, someone has agreed to write an article for your WordPress blog and you want their name to appear next to the article.  There are two ways to add a guest author’s name.  First, you could always create an account for them and they can post their own articles.  This works well, especially if they plan to write again in the future.  The second way does not involve the author at all.  You simply add some code to your functions.php file and add a custom field at the bottom of your post.  This method is ideal when you don’t want to bother the author with dealing with passwords, when they will only write one article, when they have simply sent you the text of an article and will not be going into the WP editor to create the post and for keeping your dashboard clutter free.  On to it then.

Add a guest author’s name to your post

1.  FTP to your site and open the functions.php file in an editor and paste in this code snippet.  If you need a general purpose editor, I recommend Notepad++  it is lightweight, simple to use and free.  Download it here.

2.  Now that you have entered the code, go to your post editor, go to “Screen Options” and make sure that “Custom Fields” are selected.

add a guest author's name
add a guest author’s name

3. Scroll past your post and in the section “Custom Fields” click on “Enter New”

add-a-guest-author's-name-2

4. After that type “guest-author” exactly as I have written it in the “Name” field and type in the name of the author in the “Value” field

add-a-guest-author's-name-3

5.  Enter the content of the post and publish.  The guest name will appear.

messi

For any other WordPress questions you might have or just to discuss things WordPress, drop me a line.

 

Are you ready for a new website?

Yes, let's start!