I am trying to:
We have a custom post-type expert and created an edit expert post form.
I followed the toolset documentation.
Created edit form
Created a template for the edit expert form.
Then in the archive view gave edit post link was selected from the edit expert form template.
Access control:
Toolset form : Edit own expert form
I gave access only to the admin and the subscriber.
We have created an expert form where users can submit the post. Admin manually edit the post and publishes it (we will change the author of the post to admin)
The subscriber can't see the edit button in their own post when we change the author of the post to admin.
The subscriber can see the edit button in their own post when the author is same as the subscriber.
I like to know how the subscriber Access control works. If we select subscriber in the edit form the author of the post should be the same subscriber ID?
What I am trying to do?
Subscriber can edit their own post.
Please guide us on how to set this access control for subscribers.
>What I am trying to do?
>Subscriber can edit their own post.
From your description you want subscribers to be able to edit posts that are *not* their own.
>The subscriber can't see the edit button in their own post when we change the author of the post to admin.
>The subscriber can see the edit button in their own post when the author is same as the subscriber.
That is exactly as expected, the subscriber cannot see the edit button because the post is no longer theirs (they are not the author).
You would need to change the subscriber permissions so that they can edit anyone's post with the edit form.
Thanks for clarification.
I want the subscriber to edit their own post not other post. The Edit button need to be shown only to the post the subscriber posted.
So this is how toolset logic for subscriber works.
The Subscriber should be the author of the post to see the Edit button. I have set the condition now subscriber can see the edit button for their post.
In the post Author dropdown, I cant see the subscribers in the author drop down so i am unable to set the subscriber as an author.
When subscriber create a new post using post form frontend, the post author is assigned to the subscriber by default, but if we change the post author to admin user and need to set back the author to the subscriber we dont see the subscriber in the author dropdown.
Please guide us how to show subscriber list in the author dropdown.
Subscribers are a WordPress role that don't have any publishing capabilities, so they cannot ordinarily be authors.
When WordPress generates the author dropdown it checks for users with the "edit_posts" capability, which Subscribers do not have.
You can use Access to modify the Subscriber role to give it the edit_posts capability. (In Toolset > Access Control > Custom Roles you can enable Advanced mode to be able to change Subscriber capabilities; you'll find edit_posts under the Other capabilities tab).