Sometimes, you might want to remove the author’s name from a WordPress blog post. This could be because your posts are team efforts, or you’re writing for someone else and need to stay anonymous.
At WPBeginner, we run a multi-author blog, so we get it. Many of our posts are team efforts, with different people doing research, writing, and editing. Showing just one name doesn’t tell the whole story.
The tricky part is that WordPress makes you pick an author for each post, and there’s no easy way to hide the name. But don’t worry – we’ve found some solutions.
In this article, we’ll show you how to remove the 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, 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.
Now, choose a code type.
We’re going to add a CSS code snippet, so go ahead and select ‘CSS Code.’
After that, type in a title for the custom code snippet.
This is just for your reference, so you can use anything you want.
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 the ‘Post Meta’ pattern.
To get started, head over to Appearance » Editor in the WordPress dashboard.
You will now see several menus to customize your block theme.
Here, go ahead and select ‘Patterns.’
Now, navigate to ‘All template parts.’
Here, select the ‘Post Meta’ block, click on the three-dot-menu, and choose ‘Edit.’
You should now be inside the full-site editor.
Here, simply select the ‘Author’ block and delete it. If your interface is too small, just click on the ‘List View’ button at the top left corner, select the ‘Author’ block, click on the three-dot menu, and choose ‘Delete.’
Don’t forget to make some necessary adjustments in the post meta template part.
For example, you may want to remove words like ‘by’ if the author name was written as ‘[Publishing date] – by [Author name].’
To make your changes live, click on the ‘Save’ button.
Now, if you visit any page or post with the Post Meta pattern, you’ll see the author name has disappeared.
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.
Learn More Ways to Run a Multi-Author WordPress Blog
Check out these guides to manage your blog posts and authors more effectively:
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 bulk add posts and pages in WordPress and our expert picks of the best related posts plugins for WordPress.
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.