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)

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

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.

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

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 custom CSS snippet to WordPress

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

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 any template.

To get started, head over to Themes » Editor in the WordPress dashboard.

Opening the WordPress full-site editor (FSE)

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

Hiding the author name using the full-site editor (FSE)

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.

Editing a blog post template using the full-site editor (FSE)

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.

Customizing a block-based WordPress template

Now, simply click on the Post Author block.

Then, just press the ‘Delete’ key on your keyboard to remove this block from the template.

Removing the author name using the WordPress full-site editor (FSE)

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

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.

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.

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

36 CommentsLeave a Reply

  1. 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!

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

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

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

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

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

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

    • 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

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

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

      Admin

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

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

  11. 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;
      }

Leave a Reply to WPBeginner Support Cancel 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.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.