WordPress.org

Forums

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

  1. Vajaah
    Member
    Posted 1 year 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

    http://wordpress.org/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic