How to Remove Author Name from WordPress Posts

Home - WordPress Fixes - How to Remove Author Name from WordPress Posts
remove author from wordpress posts

How to Remove Author Name from WordPress Posts

Do you own a WordPress blog website and want to remove author from WordPress posts? Are you finding any difficulty in doing so? Usually, WordPress blog posts feature the name of the author alongside other meta-data such as post category and date. But sometimes, as a blog owner, you might not want to show author name in WordPress posts.

Now, the next question arises- How to remove Author from WordPress posts?

Unfortunately, by default, WordPress lacks the choice to remove posted by in WordPress posts. Therefore, you need to choose an author when publishing a post.

For this reason, we have composed a guide on how to hide author name in WordPress posts. Besides that, you will learn the advantages and disadvantages of every method.

Why remove author from WordPress Posts?

The author name is an essential kind of metadata which by default gets displayed when you publish a WordPress blog post. Further, it lets your readers to know about the authors creating the content of your blog.

But, in some cases, you might want to hide author name in WordPress. For instance, if many staff members contribute to every WordPress blog post, giving credit to one member for the entire work is somehow unfair.

Also, you might have various freelance writers who always write your articles, but you wish to maintain a particular consistent style and tone for your blogs. And therefore, you do not want to  show author name in WordPress posts.

Techniques on how to  remove author in  WordPress posts

1. Make a general author name for publishing your WordPress posts

Although this method does not remove the author name from your WordPress posts, but you can use it as as an alternative. Here, you should make a general author name, which you will use in your future blog posts and also, can use in previously published WordPress 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 do it and then want to revert your changes, you must manually edit every post, and give it the original author name.

Here is how to do it:

  • First, you should add author name on your WordPress site, and assign it a general username like editorial-team or any other.
add-new-users
  • After that, go to Users>> All Users page, followed by clicking the “Edit” button which is below the username you have added.
users
  • 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.
nickname

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.
post

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.

posts
  • 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.

Helpbot is a WordPress support agency which provides proactive WordPress website maintenance and professional WordPress support services to website owners belonging to different business niche. Get 24x7 WordPress support for fixing common WordPress errors.

2. Manually remove author name from WordPress posts

How to remove author name in WordPress posts depends on your WordPress theme.

You need to edit some code, to block your theme from showing any author name in WordPress posts. 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.

Did you try to edit the code of your WordPress theme and it broke your site? Do not worry. WordPress Emergency Support services will help to fix your WordPress website issues. 

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 remove author name from WordPress posts.

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 the file 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:

endif

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:

function

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 disable the author archives, as well as hiding the author-sitemap.xml file that the Yoast SEO plugin has created.

Summary

Although the second method to 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 to use the first method to remove author from WordPress posts, where you can create a general author name. As a result, you will be 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.

For any question, or comment about this topic, use the comment section.

Share:

Leave A Comment

CLIENTS REVIEWS