• Resolved Vajaah

    (@vajaah)


    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

    https://www.ads-software.com/plugins/co-authors-plus/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘WP-CLI Co-Authors-Plus Commands’ is closed to new replies.