Support » Plugin: BuddyPress Docs » Change Doc Author

  • Hi guys!

    Is there any way to change the author of the doc? I need login as admin and add a doc to a user.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi @b0zar-

    Sure, you can change the author of the doc. The easiest way would be to do it from the WP Admin dashboard. If the “Author” box isn’t visible when you’re editing a doc, click the “Screen Options” tab in the top right and enable it.

    -David

    Hi David,

    It seems to be impossible to change user if the doc was created by admin http://prntscr.com/k20hzx what about some PHP solution?

    Plugin Author David Cavins

    (@dcavins)

    On my installation, the “author” box populates with all available users (including those who haven’t written a post yet). You’ll need to create the other users first, of course, but it should work just fine, unless some other plugin is changing the behavior of that drop down.

    Otherwise, you can always use wp_update_post() for small changes like this:https://codex.wordpress.org/Function_Reference/wp_update_post

    David,

    Yes, users are there, I created a doc as Admin with administrator role and was trying to assign it to Subscriber. Can you check that?

    Plugin Author David Cavins

    (@dcavins)

    Yes, it works as expected for me. As an admin, I can reassign my posts to other users.

    How bizarre! Okay, will check on another fresh install.

    Nope, doesn’t help. Can you check that on my server?

    Plugin Author David Cavins

    (@dcavins)

    Sorry, no. You’ll have to troubleshoot your server. (That’s part of the fun of running your own WP host.)

    Usually, the best way to troubleshoot is to turn off plugins (and use a standard theme like TwentySeventeen) until the behavior changes. Then you know where the conflict is.

    Okay, but I already checked with the default theme and without plugins.

    Plugin Author David Cavins

    (@dcavins)

    Assuming you’re logged in as a site admin, it should work.

    You can always use wp_update_post() as I suggested above if you don’t want to troubleshoot the WP Admin. 🙂

    Works with wp_update_post() but this doc doesn’t appear in docs main list, but it appears in profile, why? 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Change Doc Author’ is closed to new replies.