WordPress how to remove author from 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 Fresh Tweeter Fresh Facebook Messenger WhatsApp Email

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 many cases, you won’t be able to find the code that generates the author’s name. Instead, you will find a template tag defined in the functions.php file or the template-tags.php file.

For example, the default Twenty Nineteen theme uses the Twentynineteen_posted_by function to display the author’s name. This function is defined in the template-tags.php file and uses the following code:

1

of them

3

4

5

6

seven

8

9

ten

Eleven

function twenty-nine_posted_by() {

         printf(

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

1

2

3

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:

https://example.com/author/samsmith/

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

Seleccione todas las publicaciones para la edición masiva 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.

Cambio masivo del nombre del autor 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 nombre del autor 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.

Nombre genérico del autor en el artículo de 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 genérica del autor en el artículo 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.

Comparte 290 Cuota Pío Cuota Facebook Messenger WhatsApp Correo electrónico

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

Last updated on February 3rd, 2021 by Editorial Staff | Reader DisclosureDisclosure: 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.

Comparte 290 Cuota Pío Cuota Facebook Messenger WhatsApp Correo electrónico

Do you want to remove the author name from your WordPress blog posts? Normally, blog posts are supposed to show author name with other meta-data like date and category.

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

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

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

Eliminar el nombre del autor de las publicaciones de WordPress Remove author name from WordPress posts

Why Would You Want to Remove Author Name?

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

However, there are times when you may want to hide the author name.

For example: if multiple staff members in your team collaborate on each blog post, then it may seem unfair to credit a single staff member for the work.

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

With that said, let’s take a look at solutions for easily removing author name from WordPress posts while still 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 in your blog posts. Themes use multiple approaches to do that which makes it harder for a plugin to provide a generic solution for removing author names.

You will need to edit some code to prevent your theme from displaying the author name. If you are uncomfortable editing code, then try the second method instead.

The first method requires you to edit WordPress theme files. If you haven’t done this before, then please take a look at our guide on how to copy and paste the code in WordPress.

Note: Make sure that you create backup of your theme or child theme before making any changes. If something goes wrong, then this will help you easily revert changes.

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

Most common locations to find this code are single.php, content.php, archive.php, and index.php files.

In many cases, you will not be able to find the code that outputs author name. Instead, you will find a template tag defined in the functions.php file or template-tags.php file.

For example, the default Twenty Nineteen theme uses the function twentynineteen_posted_by to display author name. This function is defined in template-tags.php file and uses the following code:

1

2

3

4

5

6

7

8

9

10

11

function twentynineteen_posted_by() {

         printf(

             /* 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 ;

Once you have located the code that outputs the author name, you need to delete it.

For example, you have to delete the code from the second line to the ninth line in the above code. After that, the remaining code will look like below.

1

2

3

function twentynineteen_posted_by() {

}

endif ;

Don’t forget to save your changes after deleting the author name code. Then, upload the files back to your website.

You can now visit your website to see your changes in action:

Nombre del autor eliminado en la demostración posterior de WordPress 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:

https://example.com/author/samsmith/

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.

deshabilitar archivos de autor en 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.

Añadir nuevo usuario Add new user

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

Editar usuario 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 display name 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.

Show all on-screen messages Show all on-screen messages

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

Debe seleccionar todas las publicaciones usando la casilla de verificación y luego seleccionar editar en el menú desplegable de acciones masivas. Después de eso, haga clic en el botón ‘Aplicar’ para continuar.

Select all messages for bulk editing Select all messages for bulk editing

WordPress ahora le mostrará las opciones de edición masiva. Debe cambiar el autor al nombre de autor genérico que agregó anteriormente y luego hacer clic en el botón Actualizar.

Bulk author name change Bulk edit author name

WordPress ahora actualizará todas las publicaciones seleccionadas y cambiará el nombre del autor. Recuerde, este proceso puede llevar algún tiempo dependiendo de qué tan rápido sea su alojamiento de WordPress .

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

That’s all. Now you can visit your website to see it in action.

Editorial team as author name Editor's team as author's name

Our recommendation

Removing the author name using the encoding method does the trick, but it’s not the best solution. For example, if you are not using a child theme, a theme update will override your changes.

That’s why we recommend the second method to create a generic author name.

This lets you use the built-in features of WordPress and doesn’t require you to modify any code. This will not remove the author name or the files, but it will make them generic. This will also help ensure consistency of authorship across your site.

If you are good at coding, you can also use a combination of the two approaches. You can create a generic author name to publish all of your blog posts, then hard code the author profile into a WordPress child theme.

We use a similar approach at WPBeginner. You can see “Editorial Team” as the author of all blog posts, including the one you’re reading right now.

Generic author name in WPBeginner article Generic author name on WPBeginner article

You can also see it in the author information box at the bottom of the article.

Generic author info box in WPBeginner article Generic author info box in WPBeginner article

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

We hope this article helped you learn how to remove the author name from WordPress posts. You can also check out our list of 30 effective ways to monetize your website.

If you liked this article, please subscribe to our YouTube channel for WordPress tutorial videos. You can also find us on Twitter and Facebook.

Share 290 Fresh Tweeter Fresh Facebook Messenger WhatsApp Email


Video WordPress how to remove author from posts

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…