I want to enable my real estate site as a membership site so that other brokers/agents can create their own listings (custom posts). Currently, I assigned them as default Author role in WordPress. In Access, Author role has Read enabled. However in their profile page after login, they can see everyone else's listings, as well as the entire media library. How can I ensure they can only see and edit their own custom posts and media that they uploaded?
Hello,
How do you setup the "their profile page"? if it is wordpress font-end, you can setup a post view query listings/media posts, filter by:
Post author is the same as the logged in user
see our document:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
But the wordpress admin side, in your case, there are only few permissions can be disabled, for example:
- Delete any
- Edit any
- Preview any
More help:
https://toolset.com/documentation/user-guides/setting-access-control/
I'm not sure I understand. I'm using default WordPress profile page. Left column shows the custom posts, etc. If using Views, I can only display results right? How does the agent/broker add new listings - need to design CRED forms? Is there a simpler way like tweaking Access so that it can display only custom posts related to the that Author, and also allow edit/add new custom posts? - right now as in attached pics, the user sees listings of everyones' else, although he can only edit his own.
According to your screenshots, it is in wordpress admin side, as you can see there isn't such a built-in feature within Access.
As I mentioned above:
there are only few permissions can be disabled, for example:
- Delete any
- Edit any
- Preview any
But none of them can achieve what you want:
they can only see and edit their own custom posts and media
Access plugin is based on the WordPress user capabilities, according to wordpress document:
https://codex.wordpress.org/Roles_and_Capabilities
There isn't such kind of capability too
And Toolset form and Views won't work as expected in wordpress admin side, so I don't think it is possible within Access, you might consider custom codes, but it is out the range of Toolset support, you can check it with our Toolset contractors:
https://toolset.com/contractors/
I have resolved this issue with a WP plugin called Advanced Access Manager (https://wordpress.org/plugins/advanced-access-manager/). It allows hiding of lists at the backend and/or frontend by role or user for custom post types as well - doing exactly what I needed.
Thank you!