How to Remove Author Name from Your WordPress Posts
Do you have some posts from which you want to remove the author name from WordPress posts? Are you finding any difficulty in doing so? As usual, blog posts should feature the name of the author alongside other meta-data such as category and date. But, as the blog owner, you might not be for the idea of showing the author name next to your blog posts.
How to remove Author from WordPress post? Unfortunately, by default, WordPress lacks the choice of removing the author name. Also, you must choose an author when publishing a post.
For this reason, we have composed a guide on how you can hide author name in WordPress posts. Besides that, you will learn the advantages and disadvantages of every method.
What would make you remove the author name?
Did you know the author name is an essential kind of metadata which by default get added to your WordPress blog posts? Further, it lets your readers know about the authors creating the content of your blog.
But, in some cases, you might need to hide author name in WordPress. For instance, if many staff members contribute to every blog post, giving credit to one member for the entire work is unjust.
Also, you might have various freelance writers who always write your articles, but maintain a particular style is all you want. Need to write content for blog and get your blog posted? Take creative services by WordPress experts.
Now, keeping that in mind, here are the solutions to apply for how to remove author in WordPress posts:
Technique 1: Make a general author name for publishing your WordPress post
Although this method does not eliminate the author name, but you can use it as asn alternative. Here, you should make a general author name, which you will use in your past and future blog posts. So, you should change author name in WordPress before you publish every post.
Keep in mind: This method cannot get reversed. Thus, if you want to use it, then go back, you must manually edit every post, and give it the original author name.
Here is how to do it:
- First, you should get author name on your WordPress site, and assign it a general username like editorial-team or any other.
- After that, go to Users>> All Users page, followed by clicking the “Edit” button which is below the username you have added.
- Once the user profile opens, move down to “Nickname” and add the name you would want to show. For instance, Editorial Team.
- Now, click the drop-down menu which is next to the “Display name publicly as” choice, and choose the nickname that you entered.
Also, you can add a general bio or make a gravatar of the user account.
- Once you are done, move to Posts >> All Posts page. Go at the top of the page and click the screen options menu. Enter 999 for the number of items to show.
- As a result, you will be able to edit and modify the author name for many posts. Besides that, you should select all posts through the checkbox. After that, select edit in the bulk actions in the drop-down menu. Now, continue by clicking the “Apply” button.
WordPress will show your bulk editing choices. But, you should change the author name to the name you created on the start. And, click the update button.
- All the posts you have selected will get updated by WordPress. You can see the action by visiting your website. Nonetheless, the speed of this process depends on the speed of your hosting provider.
Technique 2: Manually removing the author name from your WordPress posts
When and how to display author name in WordPress blog post? depends on your WordPress theme.
So, you should edit some code, to block your theme from showing any author name. However, you should use the first method if editing code is problematic. Reason being, this technique needs you to edit your WordPress theme files.
Also, before you make any changes, ensure you have created a backup of the theme you are using. This helps you to reverse changes in case of any issue.
Moreover, a WordPress theme utilizes various code variations to show the name of the author. Thus, you should find the code that is displaying the name of the author in your theme files and then WordPress remove the post date and author.
Even so, Index.php, archive.php, content.php, and single.php are the most usual areas to locate this code.
But, in most cases, you will be unable to locate that displays the name of the author. Instead, you will see a template tag which is defined in the template-tags.php file or functions.php file. For instance, the default Twenty Nineteen theme applies the function twentynineteen-_posted_by to show author name. The template-tags.php file defines this function, and here is the code it uses:
After finding the code which shows the name of the author, ensure you delete it. For instance, the code in line 2 and 9 should be deleted. The code that remains will appear as:
Once done, save the changes. After that, upload the files to your website. Visit your website to view the changes.
This technique ensures all your blog posts do not show the author name and hide author page in WordPress . But, the author archive page does not change. WordPress makes a list of all posts that a particular user has written on the author archive page.
Search engines can discover the author archive page URL. However, you can utilize the Yoast SEO plugin to deactivate the author archives. This is after installing and activating the plugin. To do so, move to SEO>> Search Appearances on your Yoast dashboard, and click “Archives” tab.
Now, the author archive settings are visible. Also, you can disable the author archives and enable the Author archives button on your website.
As a result, you will have to disabled the author archives, as well as hiding the author-sitemap.xml file that the Yoast SEO plugin has created.
Although the second method that remove author name from WordPress posts, is not the best. This is because, you are not utilizing the child theme. Thus, updating the theme overrides your changes.
For this reason, we suggest you use the first method where you can create a general author name. As a result, you will able to utilize the built-in WordPress functionality that does not need any editing of the code. Although it will not eliminate the author name or archives, it makes them general. Besides that, it ensures there is authorship consistency on your website.
Nonetheless, if you are perfect with coding, you can combine the two methods. Here, you will first make a general author name for publishing your posts. After that, you will hard-code the author profile in your WordPress child-theme.
If you are facing any WordPress related issues, you can contact WordPress Experts.
For any question, or comment about this topic, use the comment section.