Hi there. I really hope you can help me to pick back up on this. This relates to a post I made a while back. but have not been able to figure out still. That post can be viewed here [ https://toolset.com/forums/topic/limit-users-to-viewing-only-their-own-posts/#post-1323225 ] so you can read the issue. I also just posted this comment at the bottom of that, but an alert told me it wouldn't be responded to there. So I am stating the issue again here...
I have filtered by author, and all posts are set to publish as Private posts. But still authors from the front end cannot see their post in Views.
I know that I need to follow this advice you have above: "By default, private posts will not appear in a View unless you add a post status filter. But then, all private posts appear for everyone in that View (not just the current logged-in User's private posts). You can work around that by using post author ID filters and shortcode attributes."
I have tried this again and again, using the advice on the linked page, and I just can't figure it out.
Please can you help me by telling me what settings I need to use in the dialogue shown in the attached screenshot to achieve my aim. As things stand, Admins see their private posts in the View, but members (front end subscribers) do not see theirs.
I'm assuming that the posts are created by the subscribers. Meaning when the posts are created they are published at the same time. If the posts are moderated and you as an admin go in and then publish the post, then the author will be switched to you.
What I recommend that you do is to check that the author of the post is the actual person and not yourself.
To do this you may need to enable authors in your custom post type settings and then display it by enabling the authors section using the screen options.
The posts are created by the subscribers. When they are created they are published at the same time. But they are set to publish as a Private post. They are not moderated first by an admin. What's more, the author name on each of the posts is the name of the author who created the post, not the name of an Admin.
I ave created a view called "A TEST process view". If you login to the site using the details I sent, then you should be able to see that.
What I need is for clients to be able to publish posts to this custom post type from the front end, which they and we can edit, and which are only ever visible to them and us.
No client should ever be able to see any posts of this post type from another client, only their own. Each post from the client will have information specific to their project with us. So they must never be visible to the public or other clients. Just between the client and us.
I checked on the view and the view is only displaying my posts and even if the posts are set to private it still shows up.
However, because of how the view filter works it will only show the posts to the post Author, so even if you are an admin it won't show you the posts of the other users.
You will need to access those posts from the backend. Or you will need to create a second view that you can link to from another view that is listing out all the authors on your site.
Then you can have a button beside each of them that says "view posts" it will then link to the page with another view that will only list out that Authors posts and from there you can click on their posts to edit them etc.