• Resolved yongkai

    (@yongkai)


    I have configured AAM to LIST TO OTHERS for a user role. So this role can read/edit/delete his own posts only. Now I have 2 such users and they are co-author for the same post/page. I am using Co-author Plus to add multiple author for same post. The problem is that these 2 users are both author of the same post, so I want them to see their own post. But AAM only allows the FIRST author to see his own post. Is there any way I can configure it so all the authors of the same post to edit it, but restrict non-authors from editing the post?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Noel

    (@noelalvarez)

    hi @yongkai,

    may I know as to where we can get that 3rd party plugin you are using to assign multiple authors to one post? So we can investigate further.

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @yongkai,

    WordPress core has constrain on how many authors each post can have and that is exactly only one author (there is a dedicated column post_author in the wp_posts database table only for one user ID).

    There are several plugins online that allow you to “assign” multiple co-authors to a single post, however they typically use the post metadata which can’t be used during effectively determine if user has access to see or manage a post or not.

    Luckily AAM actually takes in consideration the ideal of multiple authors per post and you are half way there. You have to have the latest AAM version and Plus Package 3.8.2.

    So for example, lets say that you have a role Editor where all users that belong to this role, should be able to edit only their own posts. However John (who is Editor), should be able to see and manage also “Some Post” that was created by Lesley (another Editor). In this case you can do following:

    – Switch to Editor role and set default access to all Posts by checking LIST TO OTHERS;
    – Now, switch to John user, go to Posts & Terms and drill-down to Posts, find “Some Post” and uncheck LIST option. This way AAM will allow also John to see that particular post.

    Keep us updated if anything.

    Regards,
    Vasyl

    Thread Starter yongkai

    (@yongkai)

    Hi @noelalvarez,
    The plugin I’m using is Co-Author Plus.

    @vasyltech, I see, I realized that the WordPress core only assigns one author for each post, so it is a limitation. Anyway, I upgraded AAM and plus package, and tried your suggestion. I am able to make it work now, so now multiple authors of the same post can edit it. Thank you very much.

    However, just a suggestion, my idea is that if a post has multiple authors(with LIST TO OTHERS checked), each of these author should be able to edit this post without having to configure on each user’s post. So maybe LIST TO OTHERS can exclude co-author of the same post, in that way, we don’t have to configure each user individually, especially when there are many co-authors for many posts.

    Thank you very much anyway and cheer ??

    Regards,
    yongkai

    • This reply was modified 6 years, 4 months ago by yongkai.
    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @yongkai,

    I agree with you on that, it is just a limitation that WordPress core has and it is really challenging to bypass it. The Co-Author Plus plugin uses the concept of postmeta to store the list of co-authors and at some point I’ve reviewed their implementation. Currently I have no plans to integrate AAM with Co-Author Plus however I’ll keep eyes open for any kind of changes in the WordPress core.

    Thank you,
    Vasyl

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Co-author to edit own post’ is closed to new replies.