Ready to get started?Download WordPress


Co-Authors Plus
[resolved] WP-CLI Co-Authors-Plus Commands (2 posts)

  1. Vajaah
    Posted 6 months ago #

    I have an installation that will be merged with one that is already using Co-Author's Plus. I'd like to use the WP CLI commands to convert the users to guest authors and appropriately associate authors. I know that this is a combination of creating the guest-author from the users and adding terms to relate the post to that guest author. I'm wondering which sub commands and in which order they should be run to get this done.

    Should this work?

    1. create-guest-authors
    2. assign-user-to-coauthor
    3. create-terms-for-posts


  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 6 months ago #

    Hi there,

    First off, do a backup before you perform any of these transformations :)

    Once you've done so, I would do:

    1. assign-user-to-coauthor - Creates all of the author terms.
    2. create-guest-authors - Creates guest authors from users. These guest authors will have the same slugs as the users.
    3. Delete the users (or perform your export and migration).

    create-terms-for-posts is an unnecessary step because the terms will be created in assign-user-to-coauthor.


You must log in to post.

About this Plugin

About this Topic