Hello
I have 2000 wordpress posts totally.
I want to change name of author for posts between 500-1500 to "JOHN" with mysql database command.
What command should I use?
It's probably easier to use one of those free guest author plugins. That way you can change it based on the author post based on how you set up your categories. I think that's how I did it.
To change from one author to another there's this (replace id_new_author and id_old_author with their author IDs)
SQL:
## to get the list of authors + their ID's
SELECT ID, display_name FROM wp_users;
## to replace one author with another
UPDATE wp_posts SET post_author=id_new_author WHERE post_author=id_old_author;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.