Remove author from wordpress posts

New Page

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

Last updated on February 3, 2021 by the editorial team | Reader Disclosure Disclosure : Our content is reader approved. This means that if you click on some of our links, we may earn a commission. Find out how WPBeginner is funded, why it matters, and how you can support us.

Share 290 Share Tweeter Share Facebook Messenger WhatsApp E-mail

Do you want to remove the author name from your WordPress blog posts? Typically, blog posts are supposed to display the author’s name along with other metadata such as date and category.

However, some blog owners may not want to display the author’s name next to their blog posts.

By default, WordPress does not have the option to remove the author name and you must select an author to publish a post.

In this article, we will show you two ways to easily remove the author name from your WordPress posts. We will also discuss the pros and cons of each approach.

Remove author name from WordPress posts Remove author name from WordPress posts

Why would I want to remove the author’s name?

Author name is an important type of metadata added by default to your WordPress posts. It lets your readers learn more about the authors who create content on your blog.

However, there may be times when you want to hide the author’s name.

For example: if multiple staff members on your team are collaborating on each blog post, it may seem unfair to recognize the work of only one staff member.

In another scenario, you may have several freelance contributors/editors who occasionally write articles, but want to maintain a consistent style and voice for your blog.

With that said, let’s look at the solutions to easily remove the author name from WordPress posts while allowing multiple authors to work in the background.

Method 1 – Manually Remove Author Name From WordPress Posts

Your WordPress theme decides when and how to display the author name on your blog posts. Themes use multiple approaches to do this, which makes it difficult for a plugin to provide a generic solution for removing author names.

You will need to modify some code to prevent your theme from displaying the author’s name. If you’re not comfortable editing code, try the second method.

The first method requires you to edit the WordPress theme files. If you haven’t already, check out our guide on how to copy and paste code in WordPress.

Note: Be sure to create a backup of your theme or child theme before making any changes. If something goes wrong, it will help you easily undo the changes.

WordPress themes use different variations of code to display the author’s name. You will need to locate the code responsible for displaying the author name in your theme files and remove it.

The most common places to find this code are the single.php, content.php, archive.php and index.php files.

In much cases, no podrá encontrar el código que genera el nom del autor. In this case, you will find a label for the plant defined in the archive functions.php or in the archive template-tags.php.

For example, the predetermined topic Twenty Nineteen uses the function twentynineteen_posted_bypara mostrar el nom del autor. This function is defined in the archive template-tags.php and uses the following code:












function twentynineteen_posted_by() {


             /* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */

             ‘<span class=”byline”>%1$s<span class=”screen-reader-text”>%2$s</span><span class=”author vcard”><a class=”url fn n” href=”%3$s”>%4$s</a></span></span>’ ,

             twentynineteen_get_icon_svg( ‘person’ , 16 ),

             __( ‘Posted by’ , ‘twentynineteen’ ),

             esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),

             esc_html( get_the_author() )



endif ;

Una vez que haya localizado el código que genera el nombre del autor, debe eliminarlo.

Por ejemplo, debe eliminar el código desde la segunda línea hasta la novena línea en el código anterior. Después de eso, el código restante se verá como a continuación.




function twentynineteen_posted_by() {


endif ;

No olvide guardar sus cambios después de eliminar el código del nombre del autor. Luego, vuelva a cargar los archivos en su sitio web.

Ahora puede visitar su sitio web para ver los cambios en acción:

Author name removed in WordPress demo post Author Name Removed in WordPress Post Demo

This method hides the author name on all your posts; however, the author archive pages will remain intact. An author archive page is where WordPress creates a list of all articles written by a specific user.

You can find author archive page on a URL like this:

This URL is discoverable by search engines, which means you may still get traffic to those pages.

You can disable the author archives easily using the All in One SEO plugin. Once you install and activate the plugin, go to All in One SEO » Search Appearance in your dashboard and then click the ‘Archives’ tab.

Now you can see the author archive settings. You can toggle Author Archives switch and disable author archives on your site.

disable author archives in wordpress disable author archives in WordPress

Doing so will disable author archives and hide author-sitemap.xml file created by the AIOSEO plugin.

Method 2: Create a Generic Author Name for Publishing WordPress Posts

This method does not remove the author name, but it can be used as a workaround.

You will create a generic author name and use it for all your past and future articles. You will need to change the author name before publishing each post.

Note: This method is irreversible. If you do this and want to revert, then you will have to edit each post and assign it to the original author manually.

That being said, let’s get started.

First add a new author to your WordPress site and give it a generic username such as editorialteam.

Add a new user Add a new user

Next, you need to visit Users » All Users page and click on the ‘Edit’ link below the username you just added.

Edit user Edit user

On the user profile screen, scroll down to the ‘Nickname’ option and enter the name you want to be displayed (for example, Editorial Team).

After that, click on the drop down menu next to ‘Display name publicly as’ option and select the nickname you just entered.

Select number to mostrar Select display name

You can also add a generic bio and even create a gravatar for that user account.

Now go to Posts » All Posts page and click on the screen options menu at the top. Enter 999 for number of items to display.

Mostrar todas las publicaciones en pantalla Show all posts on screen

This will allow you to quickly edit and change author name for a large number of posts.

You need to select all posts using the checkbox and then select edit under the bulk actions drop down menu. After that click on the ‘Apply’ button to continue.

Selected todas the publications for the massive edition Select all posts for bulk editing

WordPress will now show you the bulk editing options. You need to change the author to the generic author name you added earlier and then click on the Update button.

Massive cambio of the number of the author Bulk change author name

WordPress will now update all selected posts and change author name. Remember, this process may take some time depending on how fast your WordPress hosting is.

If you have more than 999 posts, then you will need to go to page 2 and repeat the process.

That’s all. You can now visit your website to see it in action.

Equipo editorial como number of the author Editorial Team as Author Name

Our Recommendation

Removing author name using the coding method gets the job done, but it is not the best solution. For example, if you are not using a child theme, then a theme update will override your changes.

This is why we recommend the second method to create a generic author name.

Doing so allows you to use the built-in WordPress functionality and does not require you to edit any code. It will not remove author name or archives but will make them generic. It will also help to ensure consistency of authorship on your site.

If you are good with coding, then you can also use a combination of both approaches. You can create a generic author name to publish all your blog posts, and then hard-code author profile in a WordPress child-theme.

We use a similar approach at WPBeginner. You can see ‘Editorial Staff’ as the author for all blog posts including this one you are reading right now.

Generic number of the author in the article of WPBeginner Generic Author Name on WPBeginner Article

You can also see that in the author info box at the bottom of the article.

Cuadro de información generica del autor en el article de WPBeginner Generic Author Info Box in WPBeginner Article

If you want to add an author info box like this, then take a look at the best free author bio box plugins.

We hope this article helped you learn how to remove author name from WordPress posts. You may also want to see our list of 30 effective ways to monetize your website.

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.

Shares 290 Share Tweet Share Facebook Messenger WhatsApp Email

How to eliminate the number of the author of the publications of WordPress?

3a85d656204cc25cc4ffb10236277842Bhanu Ahluwalia Posted in: WordPress Tutorials

How to Remove the Author Name from WordPress Posts?

86 / 100

Powered by Rank Math SEO

If you’ve ever seen a WordPress post with a name at the top that looks something like this: “Jessica Miller wrote this post.” then you know the author name of a WordPress post. However, some blog owners may want to remove the author’s name displayed next to their posts.

WordPress does not provide an option to remove the author name by default, but there are ways to remove the author name from your WordPress posts. You can manually remove the author’s name, use a plugin to remove it from your post or remove it with the help of CSS code.

In this article, we’ll show you to remove the author’s name using both methods. So without further ado, let’s get started.

Table Of Contents

  1. Why to Remove the Author Name in WordPress?
  2. How to Remove the Author Name in WordPress?
    • Remove the Author Name Using a Plugin
    • Remove the Author Name from Schema Markup
    • Using a Generic Author Name
    • Manually Remove the Author Name
    • Remove the Author Name Using CSS Code
  3. Conclusion

1 Why to Remove the Author Name in WordPress?

The metadata for the author’s name is an important aspect of WordPress. It assists readers in learning more about the writer.

However, there are several instances where hiding or eliminating the author’s name is advantageous.

If multiple members contributed to a blog post, applauding a single person would be unjust to the entire team. It would help if you then hid the name of the authors.

In another instance, you may have numerous contributors/freelance writers who contribute articles regularly, but you want your site to maintain a consistent style and voice.

Now, let’s look at the various methods to remove author names from WordPress.

2 How to Remove the Author Name in WordPress?

2.1 Remove the Author Name Using a Plugin

First, you need to install and activate WP Meta and Date Remover plugin. To do so, navigate to Plugins > Add New section of your WordPress dashboard. Search for WP Meta and Date Remover plugin, and install and activate it.

Install and activate the complemento WP Meta and Date Remover

All meta information is automatically erased once the plugin is active. To erase the data, it employs two methods: CSS to hide it from the front end and PHP to remove it from the back end. The latter method implies that the metadata is no longer visible to search engines, and you can use either method.

Configuración del complemento WP Meta y Date Remover

Click on the Save Changes button to save your settings. You can then visit your site and see that the author’s name has been removed.

Authorized number eliminated

2.2 Remove the Author Name from Schema Markup

Rank Math helps optimize author profiles by enabling an SEO meta box. If you want to remove the author, you may need to use a filter to remove the schema from the author. To do this, you need to add the following code snippet to your theme’s functions.php file.

/** * Filter to modify schema data. * Replace $schema_type with a schema name such as article, review, etc. * * @param array $entity Snippet Data * * @return array */ add_filter(“rank_math / snippet / rich_snippet_{$schema_type}_entity”, function ($entity) { if ( isset( $entity[‘author’] ) ) { unset( $entity[‘author’] ); return $entity; } return $entity; });

Please note that you must replace the {$schema_type} with the type of object you want to modify.

For example, if you want to replace the {$schema_type} object with an article, the code above will look like the one shown below.

add_filter(“rank_math / snippet / rich_snippet_article_entity”, function ( $entity) { if ( isset( $entity[‘author’] ) ) { unset( $entity[‘author’] ); return $entity; } return $entity; });

2.3 Use of a generic author name

L’utilisation d’un nom générique et non révélateur au lieu d’éliminer complètement l’identité de l’auteur de vos entrées de blog est parfois une option préférable. Cette méthode est particulièrement avantageuse pour les articles rédigés par un groupe de personnes, comme une équipe éditoriale ou des pigistes, qui ont un style d’écriture distinct et cohérent. Le maintien du même style d’écriture rend l’absence d’un auteur particulier moins perceptible.

To add a generic name, navigate to Users > Add New from your WordPress dashboard. Create a new username and fill in the required details you wish to add, and choose the user role. Click on the Add New User button.

add number of usuario

Next, navigate to Users and click on All Users. Click on Edit next to the new username you just created, as shown below.

editar usuarios

Enter the Nickname you want to display on your posts, for example, the editorial team. Then, select the nickname you created from the Display name publicly as a drop-down menu.

Introduce el apodo

Once done, click on the Update User button to save your changes. You can now use this generic name for your posts.

2.4 Manually Remove the Author Name

This method requires you to edit WordPress theme files. Doing so might require some coding knowledge and WordPress familiarity.

Note: Before making any changes, ensure you have a backup of your theme or child theme. If something goes wrong, you can swiftly undo the changes.

To manually remove the author name, you must locate and delete the code responsible for displaying the author’s name in your theme files. The most common locations to look for this code are single.php, content.php, archive.php, and index.php files.

In some cases, it’s not possible to locate the author’s name in the current template. If that is the case, then look for the codes in the template-tag.php or functions.php files.

Par exemple, le thème Twenty Twenty One utilise le fichier template-tags pour les informations sur l’auteur et utilise la fonction Twenty_twenty_one_posted_by() comme indiqué ci-dessous.

Find the CSS code

Pour supprimer le nom de l’auteur, vous devez le remplacer par le code suivant.

function twenty_twenty_one_posted_by() { }

Click the Update File button to save your changes. You can now visit your site to see the changes applied.

Manually deleted author name

2.5 Remove author name using CSS code

If you have coding knowledge, you can add CSS code and remove the author name from your posts. To do this, navigate to one of your posts, right-click on the author’s name, and click the Inspect Item option.

Inspect author name

Locate the HTML element that encompasses both the author’s name and the By: tag in the Elements tab. Hover over different HTML elements on the page until the one that contains both By: and the author’s name is highlighted.

find the name of the author

The relevant container element in the screenshot above is a div with the class author name. To hide your author and the By: line in CSS, you just need to apply display:none; rule to the appropriate CSS selector. Add the following code snippet to remove the author name.

.author-name {display: none;}

Once you’ve created your code, navigate to Appearance > Customize > Additional CSS . Add the code snippet above and click the Publish button .

add css code

You can then visit your post and the author’s name will be removed.


Now that you know the different reasons why it is beneficial to hide an author’s name, you can also decide if this is the best option for your website. We have discussed several methods to remove the author’s name; you can use whichever suits you best.

If you like this article, let us know by tweeting  @rankmathseo.  💬



Video Remove author from wordpress posts

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…