Skip Navigation

[Resolved] allow user to delete own images from Custom Post using Post Form

This support ticket is created 3 years, 9 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.

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/Karachi (GMT+05:00)

Author
Posts
#1982453
Screen Shot 2021-03-11 at 14.04.28.jpg

I'm trying to set up a form to allow users to manage their own profile page. I can't find a way of allowing them to delete images previously loaded as I can as Admin at the backend. I assume it's a permissions setting but I can't seem to find it. Ideally the form should look the same as the Admin screen with filename and thumbnail but it seems to be an either/or option, not both.

Screenshot attached showing the admin screen left vs. the Post Form when the user is logged on.

Thanks, Richard

#1983319
screen-1.png

Hi Richard,

Thank you for contacting us and I'd be happy to assist.

Whether its a featured image or an image type custom field, you'll see a delete icon when using a front-end form to edit content:
https://toolset.com/lesson-placement/lesson-placements-1621521-1612095/
( example screenshot attached )

However, if you'd like those images to be deleted from the media library/server as well, then you'll need to add code customizations.

You'll find some good example for that in this support ticket:
https://toolset.com/forums/topic/delete-images-from-server-after-front-end-cred-form-update/

For more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar

#1986695

Hi Waqar, I'm not seeing the [x] delete button but it's not such an issue any longer. Better that the user not have that functionality and potentially leave blanks in the template that the post is displayed within. Thanks for the pointer to the code customisations, the one for creating a folder for a users images will be useful for managing images on the server when a user account is removed.
Regards, Richard