Do you want to remove the author name from your WordPress blog posts?
If you run a multi-author WordPress blog, then you may not want to show the author name next to each blog post. However, WordPress doesn’t have a built-in way to remove the name, and you must select an author to publish a post.
In this article, we will show you how to remove author name from your WordPress blog posts.
Why Would You Want to Remove the Author Name?
WordPress adds metadata to every post, such as the publication date, categories and tags, custom taxonomies, and the author name. This can give readers useful information about a post and help them find related content.
However, there are times when you may want to hide the author name.
For example, if multiple staff members collaborate on a post, then it may be unfair to credit a single author. If you run a multi-author WordPress blog or manage guest bloggers, then removing the author name can also make your website seem more consistent.
With that said, let’s see how you can remove the author name in WordPress. Simply use the quick links to jump straight to the method you want to use:
Method 1: Hide Author Name With WPCode (Recommended)
The easiest way to hide the author name is by adding custom code to WordPress.
Often, you will find guides with instructions to add custom code to your site’s functions.php file. However, this isn’t recommended, as any mistakes in the code can cause common WordPress errors or even break your site completely.
That’s where WPCode comes in.
This free plugin makes it easy to add custom CSS, PHP, HTML, and more to WordPress without putting your site at risk.
To start, you will need to install and activate WPCode. For more information, you can see our step-by-step guide on how to install a WordPress plugin.
Before we start, you will need to know the class that controls how the author name is displayed in your WordPress theme. To get this information, open any page or post that includes the author name.
Then, right-click or Control-click on the screen and select ‘Inspect.’
This opens a new panel showing all the code that makes up your WordPress website.
In the panel, go ahead and click on the arrow icon.
You can now hover your mouse over the author name.
This highlights a section of code in the right-hand panel, which is where you will need to look for the author code. This can vary depending on your WordPress theme, but look for any div
class or li
class that has the word ‘author.’
When you find the right class, make a note of it somewhere safe, as you’ll need it in the next step.
With that done, you are ready to hide the author name using custom CSS, so go to Code Snippets » + Add New.
Then, hover over the ‘Add Your Custom Code (New Snippet)’ option in the code snippets library and click the ‘Use snippet’ button.
After that, type in a title for the custom code snippet. This is just for your reference, so you can use anything you want.
Next, open the ‘Code Type’ dropdown and choose ‘CSS Snippet.’
You can now add the following CSS code snippet to the code editor, making sure to replace li.meta-author
with the class you got in the previous step:
li.meta-author {
display:none;
}
Just be aware you may need to add li.
or .div
to the class name, depending on how the WordPress theme displays the author name.
When you are ready to make the code live, scroll to the top of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active’.
Finally, simply click on ‘Save Snippet’ to make the snippet live.
Now, the author name will no longer appear on your WordPress blog posts.
This method hides the author name on the front end, but it doesn’t disable the author archive pages.
These pages list all the posts written by a particular author and typically have a URL such as www.example.com/author/authorname.
Search engines can still find these pages and may include them in the search results. For that reason, we recommend disabling the author archives using the All in One SEO plugin.
After activating the plugin, simply go to All in One SEO » Search Appearance and then click the ‘Archives’ tab.
Under ‘Author Archives,’ find the ‘Show in Search Results’ setting.
You can now click on ‘No.’
After that, click on ‘Save Changes’ to store your settings. Now, the author archive pages will no longer appear in search results, so you shouldn’t get any traffic to those pages.
For more information on how to improve your WordPress SEO, please see our guide on how to set up All in One SEO for WordPress correctly.
Method 2: Hide Author Name by Editing WordPress Meta Data (Block Themes)
If you are using one of the newer block-enabled WordPress themes, then you can remove the author name from any template.
To get started, head over to Themes » Editor in the WordPress dashboard.
By default, the full site editor shows your theme’s home template, but you can remove the author name from any template.
In the left-hand menu, select ‘Templates.’
You can now click on the template you want to edit.
Typically, you’ll want to remove the author name from the index, single post, or archive template, depending on your WordPress theme.
After choosing a template, WordPress will show a preview of that design.
To go ahead and remove the author name, click on the small pencil icon.
Now, simply click on the Post Author block.
Then, just press the ‘Delete’ key on your keyboard to remove this block from the template.
To make your changes live, click on the ‘Save’ button. Now, if you visit this page or post, you’ll see the author name has disappeared.
Depending on your theme, you may need to remove the author name from other areas of your WordPress site. To do this, simply follow the same steps described above, but this time, choose a different WordPress template.
Method 3: Replace Author Name With a Generic Author Name (Workaround)
Another method is to create a generic author name and use it for all your posts. This method does not hide the author name, but it may be a good option for smaller blogs that need a quick workaround.
That being said, let’s get started.
First, you need to add a new author to your WordPress website and give it a generic username such as ‘editorialteam.’
Next, go to the Users » All Users page.
Here, hover over the username you just created and click on the ‘Edit’ link when it appears.
On the user profile screen, scroll to the ‘Nickname’ option and type in the name you want to show to visitors, such as Editorial Team.
After that, click on the dropdown menu next to ‘Display name publicly as’ and select the nickname you just entered.
You can also add a generic bio and even create a gravatar for the user account.
When you are happy with how the account is set up, click on ‘Update’ to save your changes.
Now, you need to add this new author to all the posts you’ve already published. The easiest method is to go to Posts » All Posts and click on the screen options menu at the top.
Here, find ‘Number of items per page…’ and type in a high number so you can see all your posts on a single screen. For example, in the following image, we are using ‘999.’
With that done, click on ‘Apply’, and WordPress will show all your posts on a single screen.
To edit all these posts at once, open the dropdown menu that shows ‘Bulk Actions’ by default and then select ‘Edit.’
Now, click on ‘Apply.’
WordPress will now show the bulk editing options for all these posts.
Simply open the ‘Author’ dropdown and choose the generic account you just created.
When you are ready to make this change live, click on the Update button. WordPress will now update all the posts to show the new author name.
We hope this article helped you learn how to remove author name from WordPress posts. You may also want to see our guide on how to make money online blogging or see our expert picks for the best drag-and-drop WordPress page builders.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Jiří Vaněk says
I have a blog as a sole author and on my own domain. That’s why I thought it was unnecessary to display the author’s name. I used your procedure with the CSS code and it works perfectly. Thanks, you saved me another plugin space. This solution works perfectly with minimal demands on the website’s performance.
WPBeginner Support says
Glad you found our code helpful
Admin
Jay says
We went with method #2 … perfect. However, do you know if there is a way to remove the other names from the author select dropdown list when editing or adding a post. We want only our genergic author to be listed as an option. Thanks!
WPBeginner Support says
We do not have a recommended method for forcing the author to be assigned at the moment.
Admin
Steve Foerster says
Thank you, this was helpful.
WPBeginner Support says
Glad our guide was helpful
Admin
Chris says
Wouldn’t copying and pasting the folder and file into your child theme, and then deleting or commenting out this snippet, be the best solution?
Versus recommending editing the parent theme files directly.
WPBeginner Support says
If possible, that would be a good option but not all themes can be easily added into a child theme like that without issues.
Admin
Debbie says
This was super helpful and I used the second method successfully. Thanks!
WPBeginner Support says
Glad our guide was helpful
Admin
Mark Toney says
I took all the steps outlined – but when I got to the BULK edit – it would not show the new name of Editorial Team in the dropdown. I logged out and back in again and it still does not allow that name. Any ideas on why or a fix?
WPBeginner Support says
You would want to check the role permissions for the user you created that they would be able to have posts on your site for a likely culprit
Admin
daveF says
One thing to be aware of with the second method – when you bulk update the posts with the new ‘author’, the “last updated’ date is changed to the current date. If your theme displays the “last updated” metadata, it will appear that all your post happened on the same day. I did this on a church blog that was only a week old and had only a few posts, so it was not a big deal. If you have hundreds of existing posts over a long period of time, it might be a big deal to you. I wish that had been pointed out in the article. It makes perfect sense in retrospect, but I didn’t think about it until the deed was done. Maybe this comment will help someone else contemplating making this change.
WPBeginner Support says
Thank you for sharing this, we’ll look into clarifying that in the future with this article
Admin
praveen says
How to change a label name in a wordpress theme? For example am working on a education theme , and on the top of the course the author label is show as “Teacher”. I want to change the label as “Instructor”. Please help.
WPBeginner Support says
It would depend on what added that label. If it was added by your theme you would need to reach out to the theme’s support for example
Admin
Otte says
It’s better to add CSS in the theme
WPBeginner Support says
Not always, hiding the text with CSS means it’s not visible to most users but site crawlers can still find the author name
Admin
Kees says
Thank you very much. Very helpfull, very clear
WPBeginner Support says
You’re welcome
Admin
Angelo says
I’ve been able to edit the author url from the homepage to the author page by going to seo by yoast under “search appearance”. Thank you God bless you!
WPBeginner Support says
You’re welcome, thanks for sharing where you were able to edit the url.
Admin
suraj says
thanks 3rd one works for me (:
WPBeginner Support says
Glad our article could help
Admin
Milan says
The plugin Show Hide Author is no longer available for download.
WPBeginner Support says
Thank you for letting us know, we will certainly look into alternatives
Admin
Melissa says
Is there a reason you didn’t include the display: none; option for custom css?
WPBeginner Support says
That would only hide the name until someone inspected the page at which point the name would be simple to find
Admin
Michelle says
Thank you! This solution was very easy to implement and worked perfectly.
Glen Appleton says
And then there’s the CSS method, which you covered partially in the first (plugin) method. Use the same element inspector to find the CSS class (byline in Twenty Seventeen theme), and use the CSS selector to set the display to “none”. For example:
article.type-post .byline {
display: none;
}
NOTE: This only removes it from the rendered page, and not the page source. You should create a separate editor account for posting articles on your site, and make sure that account doesn’t have admin privileges.
Hope this helps.
Ngoc Anh says
Hi, How can I hide the author description below the post? Please help me! thanks a lot
joe says
just another security flaw in outdated wordpress. every post shows my login admin name. why someone wont update wordpress to fix the known issues hackers use to hack it just boggles my mind.
WPBeginner Support says
Hi Joe,
Please see our guide on how to add or change your full name in WordPress. By adding a full name and selecting it to display publicly you would be able to stop WordPress form showing the username you use for login.
Admin
Ireneusz says
Hi,
I used Show Hide Author plugin, but not working. I removed author, but left “by”. I cannot remove “by” in theme FitWP in posts. There’s no class “byline” in code.
I try put by in field Regular expressions, but not working.
Please help me.
Kevin says
You can try method 1 and use this code instead, that worked for me
Code:
.single-post .author.vcard {
display: none;
}