Home » Web Tutorials » WordPress » How to Change Post Author in WordPress?

How to Change Post Author in WordPress?

WordPress lets you assign an author to every post. By default, the person who creates a post is listed as its author. However, there are various reasons to change the initially assigned author of posts. For example, the post might have been written by someone else and you want to transfer to another contributor or import to another site with a different author. In this article, we will explain all available options for changing the author of posts in WordPress.

Author Information in WordPress

Generally, WordPress displays the author information as a post meta data in the following places:

  • Below the title of a single post.
  • All archive pages like category, tag, author, and date archives.
  • In RSS feed.
  • In author bio or avatar section.

Although the actual display varies based on your theme and plugins, changing an author means changing the data in all relevant places including the URL. For example:

  • Old author’s page URL: yoursite.com/author/old-author/
  • New author’s page URL: yoursite.com/author/new-author/

If you only want to change the display name of an author, go to “Users > Profile” section in your admin panel and scroll down to “Name” section. Find and change the name in “Nickname (required)” field. This will change the display name by keeping the author’s page URL same.

Change Nick Name

Follow one of the below methods if you want to transfer the posts from one author to another. In this case, you will see the nick name of new author (linked to the new author’s URL page) in all relevant places. First, go to “Users > Add User” and create a new user with the “Role” as Author, Contributor, Editor, or Administrator. This ensures the new author’s name is created in your WordPress site.

Create an Author in WordPress

1. Change the Author of a Single Post in the WordPress Editor

The easiest method is to change the author while editing the post.

  • Log in to your WordPress dashboard and go to “Posts > All Posts”.
  • Open the post whose author you want to change.
  • In the Gutenberg block editor, look for the “Post” settings in the right sidebar.
  • Click the name showing next to “Author” and select the new author from the list.
  • Then click “Update” to save the change. The post will now be associated with the selected WordPress user.
Change Author in Gutenberg Editor

Remember that your user account needs sufficient permissions to change the author. Administrators and users with appropriate editing capabilities can generally make this change. If you are using the old Classic Editor, open the post’s “Screen Options” from top right corner and enable the “Author” field if it is not selected.

Add Author in Classic Editor

2. Change Authors in Bulk from the WordPress Admin Panel

If you need to change the author of several posts, editing them one by one can take a long time. WordPress has a built-in bulk editing option that can handle multiple posts at once.

  • Go to “Posts > All Posts” section.
  • Select the posts that need a new author by checking the boxes next to them.
  • Then select “Bulk edit” option from the “Bulk actions” dropdown and click “Apply” button.
  • Find the “Author” option and select the new author in the editing panel.
  • Click “Update” to apply the change.
Bulk Change Author in WordPress

This method is useful when you want to assign the same author to a group of posts. However, it has a limitation for filtering a group of posts from a specific author and then assign to a different author. This is because you can’t filter the posts based on “Author” in “Posts > All Posts” section.

Note: You can also click the “Quick Edit” link showing below any post (in “Posts > All Posts” page) to change the author for a single post without opening it in the editor.

3. Using a Plugin

In most cases, you can use the above default options to change the author for a single or bulk posts. Depending on your situation, here are some free plugins for managing post authors on your site. All these functions are not available in default WordPress admin panel and so you need a special plugin.

4. Change the Author Using SQL Query

The last option is to change post authors directly in the WordPress database. WordPress stores the author relationship in the post_author column of the wp_posts table. The value in this column is the ID of the WordPress user who owns the post. For example, suppose you want to change all posts currently assigned to user ID 2 to user ID 1.

The SQL query would be:

UPDATE wp_posts
SET post_author = 2
WHERE post_author = 1;

This changes the author ID for all posts (in all statuses like publish, draft, and revision) currently assigned to user 2. You can find WordPress user IDs in the wp_users table using the following SQL command:

SELECT ID, user_login, display_name
FROM wp_users
ORDER BY ID;

Confirm the old and new user IDs before making the change. You can also filter posts based on author ID to check which posts would be affected before running the update:

SELECT ID, post_title, post_author
FROM wp_posts
WHERE post_author = 12;

After confirming the results, you can run the “UPDATE” query as explained above. If you only want to change particular posts, include their IDs:

UPDATE wp_posts
SET post_author = 2
WHERE ID IN (1, 2, 3);

This changes the author only for posts with those IDs.

Note: Since an incorrect query can affect a large number of posts immediately, make sure to take a complete backup of your database. If possible, test it on your localhost or staging site before running the queries on your live site’s database. Also, wp_posts and wp_users are the default WordPress table names. Your website may use a different database prefix, such as abc_posts and abc_users. So, make sure to check your database tables or in the site’s wp-config.php file (where the actual prefix is defined) and use the correct table names in your SQL queries.

5. Change the Author When Importing WordPress Content

WordPress allows you to export posts (Tools > Export) from one site and import them (Tools > Import > WordPress > Run Importer) to another site using an in-built WordPress Importer tool (Tools > Import > WordPress > Install Now). Let’s says, you are moving 500 posts from an old WordPress website to a new website. The original posts were written by several authors. First, you can export the posts based on author name. Then during the import, WordPress allows you to choose which authors should be associated with those posts.

Export Posts in WordPress

Suppose the old website contains:

  • John: 150 posts
  • Sarah: 200 posts
  • David: 150 posts

The new website already has corresponding user accounts. During the import, map:

  • Old John   → New John
  • Old Sarah  → New Sarah
  • Old David  → New David

The imported posts can then retain the appropriate author relationships. You can assign all posts from John to David or in any other combination as you need. 

Choose Author When Importing Posts in WordPress

6. Deleting an Author

Deleting a WordPress user does not necessarily mean that their posts should disappear. WordPress provides an option to attribute the user’s content to another user when deleting an account. For example, if you delete the account belonging to John, WordPress will ask whether John’s content should be deleted or attributed to another user.

Assign Author When Deletion

If the goal is to keep the articles, assign them to another appropriate author rather than deleting the content.

Final Thoughts

As you can see, WordPress gives you several ways to change the author of a post. In short, use the WordPress interface for normal changes (which is recommended), a plugin for advanced management, and SQL for controlled database-level operations. When importing content from another WordPress website, it is usually best to map the original authors to the correct users during the import rather than fixing hundreds of posts afterward.

Leave a Comment

Your email address will not be published. Required fields are marked *