• I’m trying to assign a guest author to a postid via wp-cli and I can’t find a way.

    I tried the following but it’s not working.

    wp post term add 2149 author cap-marie-france_doit --by=slug

    Is the only way to mass assign guest authors to postid via a function like described here?

    Assign Authors or Co-authors to a WordPress Posts Programmatically | WordPress Freelancer
    http://wplancer.com/assign-authors-programmatically/

    TIA

Viewing 1 replies (of 1 total)
  • Thread Starter emmanueldcarie

    (@emmanueldcarie)

    In fact, this is working. The postid that I was trying to assign a guest author was assigned to the WP user admin. After assigning all the post to another WP user, it’s working.

Viewing 1 replies (of 1 total)

The topic ‘Adding a guest author via wp-cli’ is closed to new replies.