Skip Navigation

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

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.

Our next available supporter will start replying to tickets in about 5.63 hours from now. Thank you for your understanding.

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

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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