Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Remove Author Name from WordPress Posts (3 Easy Ways)

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. 

Remove author name from WordPress 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.’

Getting the author name code in WordPress

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.

Example of li class with author in it

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.

Adding a new custom code snippet in WPCode

Now, choose a code type.

We’re going to add a CSS code snippet, so go ahead and select ‘CSS Code.’

Choosing CSS Snippet in WPCode

After that, type in a title for the custom code snippet.

This is just for your reference, so you can use anything you want.

How to hide the author using WPCode

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.

Hiding the author name using custom code

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.

An example of an author archive in WordPress

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.

Hiding the author archive pages using AIOSEO

Under ‘Author Archives,’ find the ‘Show in Search Results’ setting.

You can now click on ‘No.’

The AIOSEO SEO WordPress plugin

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.

Selecting the Full-Site Editor from the WordPress admin panel

You will now see several menus to customize your block theme.

Here, go ahead and select ‘Patterns.’

Clicking the Patterns menu in the Full Site Editor

Now, navigate to ‘All template parts.’

Here, select the ‘Post Meta’ block, click on the three-dot-menu, and choose ‘Edit.’

Editing the post meta block in the full-site editor

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

Removing the author name block in the post meta template part with full-site editor

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].’

Saving changes to the post meta template part in the full-site editor

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.

Deleting the author name block in the post meta pattern with full-site editor

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

Add new user

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.

Edit user

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.

Select display name

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

Show all posts on screen

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

Select all posts for bulk editing

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.

Bulk change author name

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

35 CommentsLeave a Reply

  1. Jiří Vaněk

    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

      Glad you found our code helpful :)

      Admin

  2. Jay

    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

      We do not have a recommended method for forcing the author to be assigned at the moment.

      Admin

  3. Steve Foerster

    Thank you, this was helpful.

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  4. Chris

    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

      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

  5. Debbie

    This was super helpful and I used the second method successfully. Thanks!

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  6. Mark Toney

    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

      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

  7. daveF

    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

      Thank you for sharing this, we’ll look into clarifying that in the future with this article :)

      Admin

  8. praveen

    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

      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

  9. Otte

    It’s better to add CSS in the theme

    • WPBeginner Support

      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

  10. Kees

    Thank you very much. Very helpfull, very clear

    • WPBeginner Support

      You’re welcome :)

      Admin

  11. Angelo

    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

      You’re welcome, thanks for sharing where you were able to edit the url.

      Admin

  12. suraj

    thanks 3rd one works for me (:

    • WPBeginner Support

      Glad our article could help :)

      Admin

  13. Milan

    The plugin Show Hide Author is no longer available for download.

    • WPBeginner Support

      Thank you for letting us know, we will certainly look into alternatives :)

      Admin

  14. Melissa

    Is there a reason you didn’t include the display: none; option for custom css?

    • WPBeginner Support

      That would only hide the name until someone inspected the page at which point the name would be simple to find :)

      Admin

  15. Michelle

    Thank you! This solution was very easy to implement and worked perfectly.

  16. Glen Appleton

    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.

  17. Ngoc Anh

    Hi, How can I hide the author description below the post? Please help me! thanks a lot

  18. joe

    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.

  19. Ireneusz

    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

      You can try method 1 and use this code instead, that worked for me :-)

      Code:
      .single-post .author.vcard {
      display: none;
      }

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.