• I have installed User-Submitted Posts Plugin.
    I have rigged that up to send the user info, instead of to custom fields, to create a guest-author.

    I have successfully created such a guest author and am now stuck on how to add a user to a post.

    I want to do this behind the scenes. I have the post id, and the guest author Id and display name, and email.

    How can I do this? Something along this line…

    wp_set_post_terms($PostID, $NewGuestAuthorID, 'author', true);

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

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

    (@alpha1beta)

    This is a complex process of creating the co-author as a post and then a term inside ‘author’ post type, and then adding the term to the post and the taxonomy object to the term. Don’t try this at home.

Viewing 1 replies (of 1 total)
  • The topic ‘How to assign a guest editor using only code’ is closed to new replies.