WordPress.org

Forums

Co-Authors Plus
How to assign a guest editor using only code (2 posts)

  1. alpha1beta
    Member
    Posted 1 year ago #

    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/

  2. alpha1beta
    Member
    Posted 1 year ago #

    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.

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

Tags

No tags yet.