WordPress.org

Ready to get started?Download WordPress

Forums

Let author only see their posts (15 posts)

  1. noelgreen
    Member
    Posted 6 years ago #

    How can I make it so that an author only sees their posts in the back-end?

  2. emmadw
    Member
    Posted 6 years ago #

    Not quite sure that I understand ... doesn't setting them to "private" do what you want it to do?

  3. noelgreen
    Member
    Posted 6 years ago #

    Sorry... I wasn't clear, here's what I'm wanting. :)

    Author #1 posts something.
    It shows up on the site.

    Author #2 posts something.
    It shows up on the site.

    Author #1 can go to the website and see the post by Author #2, but... if Author #1 logs into the back-end they will only see their post.

    As it is now, they can only EDIT their post, but they can see all the other posts by all other authors. I know they can see them if they go to the website, but I want them only be able to see their posts if they login to the back-end.

    Does "private" do that?
    I thought it would hide it from the published site as well.

  4. noelgreen
    Member
    Posted 6 years ago #

    YEP! That's what private does. :D hahaha

    Okay... thanks!
    Now I just need to figure out how to make "private" the default when someone publishes something. Any ideas on that?

  5. noelgreen
    Member
    Posted 6 years ago #

    Nope.

    Spoke too soon.
    Setting it to private keeps it from being on the main site.

  6. emmadw
    Member
    Posted 6 years ago #

    Private: Lets it only be visible on the site when the poster is logged in OR if you've got the post levels plugin, then any author that you've given the rights to.

    Would I be right in thinking that the reason that you want author 1 only to see their posts when they're in the "edit" screen, is to stop them editing other peoples posts, or is it just to make it easier to find theirs? I've just tested a contributor account I have; I can't edit the posts I made as admin; I can only edit the posts I made as the contributor. I can still see all the admin posts in the list, but can't do anything with them.
    I wonder if you could do some sort of auto category, so that AUthor 1's posts are automatically in Author 1 category, as well as anything else. Then, from that screen listing all the posts, they could sort by category to find their own posts.

  7. noelgreen
    Member
    Posted 6 years ago #

    It's just so they can find theirs easier... and it's the preference of the client that I'm making this website for. :)

    He doesn't want them to be visible. Why exactly, not sure.

    The problem with something like "auto category" is there will be 100s of authors (possibly 1,000s), so making all those extra categories would be a pain. Plus, the category list needs to be kept simple.

    Thanks for the help.
    I think I'm just going to have to tell him not possible.

    This is the site btw... You can see it's quite complex for using WP as a back-end. And all these people are going to be posting their own coupons. Search for "Hardees" or "food" or "Cars" if you want to see a few.

  8. emmadw
    Member
    Posted 6 years ago #

    Maybe a blog isn't the best option for what he wants to do....

  9. worchyld
    Member
    Posted 6 years ago #

    I am in the same situation.

    I would like to register authors from posting "jobs" or "adverts", but I do not want them to see other author's posts/jobs/adverts, etc at all.

    How do you hide registered authors from seeing other authors' posts from within the admin area?

  10. worchyld
    Member
    Posted 6 years ago #

    I've found a plugin that will filter posts so that it will only show it to the author (unless admin);

    Plugin Name: WordPress Diary
    Plugin URI: http://lewisvance.com/downloads/wp-diary.zip
    Description: This plugin restricts each user to only viewing their own posts, unless they are an administrator then they can view all posts.

    I've tried it out, and it does work.

  11. worchyld
    Member
    Posted 6 years ago #

    I've just realised that the plug-in does not work properly. If you "logout" you cannot see any posts on the public side of the website.

    The thing I found that worked was on v2.3.3 you can do this on the "edit-post-rows.php" file at line 14;

    if ($userdata->user_level<10) {
        $posts = query_posts("author=".$userdata->ID);
    }

    This works quite well - but I do not know if it works on later releases.

  12. slobizman
    Member
    Posted 5 years ago #

    I also need this capability, and after searching the forum I see lots and lots of others do as well. I need it so badly I don't think I can use WP for my site without it.

  13. slobizman
    Member
    Posted 5 years ago #

    I found a plugin for this today!! And it is simple and it works. I'm surprised I have not seen it discussed anywhere.

    It's called the Manage Your Posts Only in WordPress Plugin. It makes it so every user that is not an admin can only see their own posts in Manage Posts.

    The plugin is extremely simple and I was able to improve it a bit with a change to the code (I'm not a PHP guy, so someone let me know if I did anything wrong). I changed the following line:

    if ( !current_user_can( 'level_10′ ) ) {

    to:

    if ( !current_user_can( 'edit_others_posts' ) ) {

    So any role that is an editor or higher can see all posts. That includes seeing posts of a higher level than their own, like admins', but I can live with that to make it cleaner for the Contributor. It's not technically "editor and above," it is for anyone who can "edit others' posts"; out of the box, this is Editor and Administrator, but this can be changed with the Role Manager Plugin.

    If anyone has a better way to modify the plugin please let me know.

    Now, if we could just get a plugin like this to filter the Manage Comments page, or even take that damn tab off of a Contributor's panel...

  14. dragontheory
    Member
    Posted 5 years ago #

    The "Manage Your Posts Only in WordPress" URL is bad. Anyone know where to find this much needed plugin? Thanks!

  15. dragontheory
    Member
    Posted 5 years ago #

    Just to let everyone know, was able to do the above plugins and everything works. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic