Skip Navigation

[Résolu] CRED form edit post link for pending post

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

How can I allow editing of post and show the link even if the status is not publish (pending or draft)

Solution:

It had to do with the permissions given to custom roles crated through Toolset Access plugin, see the solution:
https://toolset.com/forums/topic/cred-form-edit-post-link-for-pending-post/#post-1072550

Relevant Documentation:

This support ticket is created Il y a 5 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 réponses, has 2 voix.

Last updated by Sasank Il y a 5 années et 7 mois.

Assisted by: Luo Yang.

Auteur
Publications
#1072422

I am creating a custom post listing page when they register and made the status as draft (https://toolset.com/forums/topic/have-a-band-admin-role-to-manage-cpt-band-listing-page/).

Added a link on my accounts page to edit the listing created while registration of account. The link is not showing up until the listing/post status is publish. I would want the user to be able to edit the listing and add the details before it is been reviewed. I checked the documentation for shortcode but I could not get anything related to it. (https://toolset.com/documentation/user-guides/views-shortcodes/#toolset-edit-post-link)

How can I allow editing of post and show the link even if the status is not publish (pending or draft)

#1072440

Forgot to mention, the shortcode I am using for the link is

[toolset-edit-post-link layout_slug="edit-company"]<i class="fa fa-pencil-square-o"></i> Edit listing[/toolset-edit-post-link]
#1072472

Hello,

I suggest you try these:
1) Create a post view, list listing posts, and filter by:
a) post author is current user
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
b) post status is any
https://toolset.com/documentation/user-guides/filtering-views-query-by-post-status/

2) Then you will get all current user's "pending" status posts, then follow our document to display the edit form link
https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/

#1072529

Thanks for your reply Luo.

I already got the list in place. The issue is edit link is getting hidden if the post status is not publish.

#1072542
Capture.JPG

Please refer to screenshot attached

#1072550

I just figured out that it had to do with the permissions given to custom roles crated through Toolset Access plugin. I copied from Subscriber while creating new role and that user role didnt have edit permissions. I changed it, started working fine now.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.