Skip Navigation

[Resolved] Edit own post is not working for Subscriber.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 12 months ago.

Assisted by: Nigel.

Author
Posts
#2679620

jum

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.

#2679651

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

>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.

#2679720

jum

Hi Nigel,

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.

Thanks in advance,

#2679861

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

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).

#2680109

jum

Hi Nigel,

I have changed the access as per your suggestion, Now the subscriber list can be seen in author drop down.

Thanks for the support