This support ticket is created 3 years, 5 months ago. 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.
Tell us what you are trying to do?
I would like for the author of a parent post to be able to delete the child posts. I created a view to display the child posts on the parent post page. I used the following code, but the link is not showing up where I placed it under the child post within the view:
[cred-delete-post-link class='cred-refresh-after-delete' text='Delete Post' message='Are you sure you want to delete this post?' message_show='1' action='trash']
Is there any documentation that you are following?
Hello. Thank you for contacting the Toolset support.
Do you mean that the current user who is loggedin is a parent post author and to that user you want to allow the capabilities that he should be able to delete the child post? If yes:
I would like to have problem URL where you added the delete post link as well as access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I can see the delete link. To display the delete link I've assigned the capability "Delete Others Posts using Toolset Form" to "Collector" role as you can see with the following screenshot: hidden link
=> hidden link
Hi minesh,
Thank you for attention to this! The only issue now is that a "Collector" can now delete ANY child posts. Is there a way that the "Collector"/author of a parent post has access to only delete the child posts that are within their parent post?