Home Bitcoin News Step-by-Step Guide- How to Add an Author to Your WordPress Website_3

Step-by-Step Guide- How to Add an Author to Your WordPress Website_3

by liuqiyue

How to Add Author on WordPress

Adding an author to your WordPress website is a great way to give credit to the individual who wrote a particular post or article. It also helps readers to identify the author’s expertise and establish a connection with them. In this article, we will guide you through the process of adding an author on WordPress, ensuring that your content is attributed to the right person.

Step 1: Create a New User

The first step in adding an author to your WordPress website is to create a new user account. To do this, follow these simple steps:

1. Log in to your WordPress dashboard.
2. Navigate to the “Users” section by clicking on the “Users” menu item on the left-hand side of the screen.
3. Click on the “Add New” button at the top of the page.
4. Fill in the required information, such as the author’s name, username, email, and password.
5. Choose the appropriate role for the author, such as “Editor,” “Author,” or “Contributor.” Each role has different permissions, so choose the one that best fits the author’s needs.
6. Click the “Add New User” button to create the account.

Step 2: Assign Authorship to a Post

Once you have created a new user, you can assign them as the author of a post. Here’s how to do it:

1. Log in to your WordPress dashboard.
2. Navigate to the “Posts” section by clicking on the “Posts” menu item on the left-hand side of the screen.
3. Click on the “Add New” button to create a new post or select an existing post to edit.
4. Scroll down to the “Author” section on the right-hand side of the screen.
5. From the dropdown menu, select the author you created in Step 1.
6. Save or publish your post.

Step 3: Display Author Information

To display the author’s information on your website, you need to enable the author template and modify your theme’s functions.php file. Here’s how to do it:

1. Log in to your WordPress dashboard.
2. Navigate to the “Appearance” section by clicking on the “Appearance” menu item on the left-hand side of the screen.
3. Click on the “Editor” link.
4. On the right-hand side, click on the “Theme Functions (functions.php)” file.
5. Add the following code to the functions.php file:

“`php
function custom_author_box() {
echo ‘

‘;
echo ‘

About the Author

‘;
echo ‘

‘;
echo get_avatar(get_the_author_meta(’email’), 100);
echo ‘

‘;
echo ‘

‘;
echo ‘

‘ . get_the_author() . ‘

‘;
echo ‘

‘ . get_the_author_meta(‘description’) . ‘

‘;
echo ‘

‘;
echo ‘

‘;
}
add_action(‘wp_footer’, ‘custom_author_box’);
“`

6. Save the changes to the functions.php file.
7. Navigate to the “Posts” section and click on the “Edit” link for any post you want to display the author information on.
8. Scroll down to the “Author” section and select the author you created in Step 1.
9. Save or publish your post.

Now, when you view the post, you should see the author’s information displayed below the content.

Conclusion

Adding an author to your WordPress website is a straightforward process that can enhance the user experience and give credit to the individuals who contribute to your site. By following the steps outlined in this article, you can easily add authors, assign them to posts, and display their information on your website.

Related Posts