How to Delete the Author Name in WordPress

Do you want to delete author names in WordPress? You may think this is quite hard because WordPress does not have a way to remove author names by default, but like most things in WordPress, this is accomplished with the use of plugins.

Just keep in mind that there are advantages and disadvantages to not having an author name appear on posts in WordPress.

Having an author allows you to show visitors that the person writing is experienced and credible. For example, does an article about computer operating systems written by no one look/sound better than one by Bill Gates?

Obviously, everyone doesn’t have the same experience as Bill Gates, but as long as your author has the experience and is knowledgeable, it is worth sharing his/her name with visitors. Today, I will demonstrate how to delete the author’s name in WordPress using two methods.

Why Delete the Author Name in WordPress?

It’s pretty easy to see the advantages of displaying the WordPress author names, but there can be some disadvantages as well. For example, an author might get a negative image associated with their work when they are in support or against a controversial topic.

And this has only gotten worse as harassment on social media has, sadly, become more popular.

However, this isn’t just bad for the author, it can have a negative effect on your website. Unfortunately, internet users are very slow to forgive and forget, if that ever even happens. As a result, it may end up being better for your website if you remove the author’s name.

There is also the possibility that the author was removed from the website’s staff so it might be best to remove their name off of your website. A better method to avoid all of this is to either remove the author’s name entirely or only have a few set names that authors will write under.

This is very common and can save you quite a few headaches down the road.

How to Delete the Author Name in WordPress

Today, I will demonstrate how to delete author names in WordPress using three different methods. The first method is very simple and will use the Hide/Remove Metadata plugin. This plugin allows WordPress to hide the author in WordPress on any kind of content.

The second method includes adding a little code snippet and then adding some custom CSS to the “customizer” in WordPress.

The third method is much harder because you will have to manually remove the author using code. If you use the second method, I strongly recommend creating a backup in case anything goes wrong.

Method 1: Using a Plugin

Step 1: Install and Activate the Plugin

Start off by clicking on Plugins and selecting the Add New option on the left-hand admin panel.

Add New

Search for Hide/Remove Metadata in the available search box. This will pull up additional plugins that you may find helpful.

Hide/Remove Metadata

Scroll down until you find the Hide/Remove Metadata plugin and click the “Install Now” button. Activate the plugin for use.

Install Now

Step 2: Go to the Hide/Remove Metadata Settings Page

Now that the plugin is activated, you want to actually go to the main settings page for it.

On the left-hand admin panel click on the Hide/Remove Metadata option. YOu can see this available option now because you activated the plugin.

Hide/Remove Metadata

Step 3: Configure the Plugin

The plugin is broken up into two tabs, Dashboard, and Features. Luckily, the Features tab is just an explanation of each feature and you can read them at any time. Instead, what we are looking for is in the Dashboard tab.

Locate the Hide Author switch and click it. It will be green if it is enabled.

Hide Author

You may also want to hide the date when the article was published. After you are done in the settings, click on the “Save Changes” button to finish.

Save Changes

That’s it. If you go onto your website, the author will no longer be visible, congratulations.

Note: Depending on your theme, some words may remain like “written by” or “author” and there is no way to address this without customizing your theme. Each theme is unique, so you are going to need to search for your specific theme to find how to remove or hide those words.

The plugin is extremely easy to use and only requires one step. It should also be noted, however, that WordPress will always have an author assigned to every post. This plugin cannot actually delete author names itself. However, it does show you how to hide an author in WordPress.

Method 2: Using Custom CSS in WordPress Dashboard

This second option is not difficult either, it simply requires a couple of steps to get the code in the right place and the CSS snippet in the customizer.

Again, the CSS method described below simply hides the author name, it doesn’t delete it. The author name remains in the code but is hidden from view on the frontend of the website.

You can do this with a variety of web browsers. However, the instructions below are centered around Google Chrome.

Step 1: Use the Inspect Option on a Post

Go to any live post you want on your website. Find the author’s name that is displayed on the page and right-click on it.

Look for the inspect element

This opens the “Elements” tab that is in your browser’s development tools.

Step 2: Locate Correct HTML Element

From the “Elements” tab, scroll down and locate the HTML element that wraps both the author name and the By: label.

If you know code pretty well, you will probably be able to locate it fairly easily. However, you can also scroll over elements one-by-one until the author name is highlighted on the page. Once it is, you know you have reached the correct element.

You can see, in my theme, the setup is a little different. The screenshot below has the highlighted area you are looking for.

Highlight code

Note: This may be different in your theme, so just look until the author’s section is highlighted in the post.

Once you find it, you need to add the display: none; rule to the appropriate CSS selector. You can add this to the WordPress customizer so that you can easily delete it whenever you want.

Step 3: Add Code to WordPress Customizer

From the dashboard, click on Appearance > Customize, located on the left menu area of the dashboard.

Click appearance then customizer

Click on the “Additional CSS” tab to open it up.

Additional CSS

Add the display: none; rule to the custom CSS code box that is available. It will look something like this:

.your-theme-name-post-info-author {

display: none;

Add code here

Again, this will differ based on setup and theme. That’s it! The author’s name should now be gone from the posts. You can also use this method to hide dates.

So, you can effectively remove the date and the author from WordPress posts.

Method 3: Edit Code From cPanel

The next method will involve editing code and you should make a backup before beginning the process. You will also need access to your cPanel, which is provided with web hosting plans when you create an account.

It is actually a little bit of a challenge to find the author’s information and it is quite different depending on the theme you have installed. So using my screenshots or code will not work if you are not using the same theme. If you are not comfortable with coding, I would recommend using the plugin method.

For reference, I am using the Twenty Seventeen theme, which is the default WordPress theme.

Step 1: Log In to cPanel and Find File Manager

Let’s start by logging into the cPanel and clicking on the File Manager option. The File Manager will allow you to access all of the files related to your website.

Click on the File Manager option.

Step 2: Locate functions.php File

You need to locate your theme’s functions.php file. Click on the public_html directory and click on the wp-content folder. Click on the themes folder and click on the folder of the theme you are currently using. Right-click on the functions.php file and select the Edit option.

Note: If you are not using the same theme, the information you are looking for may not be in the functions.php file. Instead, it may be located in the templates-tags.php file.

Step 3: Edit the File

Select the "Edit" option.

A pop-up window will show up. This box will warn you to create a backup of your files before editing anything. This will ensure that you can revert your website back to the previous version if something goes wrong. Click on the “Edit” button. A new tab will open containing all of the code from the file.

You need to locate the following code:

function twentyseventeen_posted_on() {
// Get the author name; wrap it in a link.
$byline = sprintf(
_x( 'by %s', 'post author', 'twentyseventeen' ),
'' . get_the_author() . ''
// Finally, let's write all of this to the page.
echo '' . twentyseventeen_time_link() . ''; // WPCS: XSS OK.

It is possible the code may be a bit different depending on what you have done with your website in the past. Simply go through the code and delete the parts that are about the author. If your code was identical to mine you would be left with the following:

function twentyseventeen_posted_on() {
// Finally, let's write all of this to the page.
echo '' . twentyseventeen_time_link() . ''; // WPCS: XSS OK.

Congratulations, your website should now not display the author anywhere. As you can see the second method is a bit more involved and is different depending on the theme you use.

You Can Switch Back at Any Time

Deleting the author’s name in WordPress can be a big change and if you change your mind, it is quite easy to revert back. If you chose the plugin method, simply deactivate and delete the plugin.

For those of you that chose to use the coding method, you have two options to revert. You can either use a backup to restore your website or manually revert the code changes.

As long as you are happy with deleting the author’s name in WordPress and it is helping the image of your website, you may not need to switch back.

Why have you chosen to remove an author from WordPress posts? Do you think it is better to have an author or not to have one?

1 thought on “How to Delete the Author Name in WordPress”

  1. Hey, very informative but I have come across several issues while trying to do so.
    Firstly, the Show Hide author plugin no longer exists so that’s a major problem. Also, previously there was a code that was typed into the name box of the author which allowed the name to be hidden.
    Please let me know if these issues can be resolved.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.