• Resolved lbbjon

    (@lbbjon)


    Hello,

    How comes I am unable to simply de-attach an image from a listing with deleting the actual image from the media library? All I am able to do is ‘Edit’ or ‘Delete permanently’, which is incredibly bad if the same image is used elsewhere.

    Is there a way I can just de-attach the image from the listing without deleting it site wide.

    Many thanks,
    Jon.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, even i faced this issue yesterday. This is not good. Deleted two images by mistake thinking it will only delete from that particular listing. Please fix this.
    There should be an option of detaching the images instead of permanently deleting them.

    Plugin Author pluginsware

    (@pluginsware)

    @lbbjon @webfuse2017 In our next version, We will change this so that only images will be deleted from the listing.

    Thanks

    Thread Starter lbbjon

    (@lbbjon)

    Thank you @pluginsware This will not only help myself, but other users too.

    Do you have an ETA upon when the next version/update with the change will be available?

    Many thanks,
    Jon.

    Thread Starter lbbjon

    (@lbbjon)

    @pluginsware Any update surrounding this fix? It is causing major problems for our website!

    For anyone looking for a temporary workaround to this issue, you can edit admin/class-acadp-admin.php, and comment out line 153:

    wp_delete_attachment( $_POST[‘attachment_id’], true );

    Which is part of the function ajax_callback_delete_attachment().

    This affects the link next to the images in the backend listing management which says “Permanently Delete” by not actually deleting the image from the media library, but still removing the reference from the listing.

    Please note, there are other references to wp_delete_attachment in the plugin which will still delete images if you allow users to manage listings from the front end or run updates via cron. Also note that editing the plugin file directly will mean the change is overwritten if the plugin is updated. Hope that helps someone.

    Thread Starter lbbjon

    (@lbbjon)

    @steelemedia Appreciate you sharing this workaround! It is something we will probably implement, as it is much better than deleting the whole image from the media library or having to delete the listing every time you want to change an image.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images (Why only permanently delete?)’ is closed to new replies.