• Hi,

    My first problem is, how can I enable admin users to see pictures from the media tab in the admin panel that I have added using wp_handle_upload (currently I have to ftp to do anything with them).

    My second problem is, how can I delete these pictures using my plugin?

    I would like to create this plugin as ‘properly’ as possible using everything I can that wordpress has available in the API. Below is a short explanation.

    I am trying to create a plugin with output similar to the Featured Content Gallery plugin but using JQuery rather than mootools. Anyone who has used this plugin will know that despite what the makers tell you, it’s a real pain dealing with the JS library conflicts.

    I would like to do things a little differently on the admin side though. I have a settings page but also a ‘gallery’ page where you can add an image and text for each ‘slide’. I have a database table with one row for each slide, this includes a column to store the picture path. I was uploading the pics to a directory in my plugin until I discovered wp_handle_upload.

    When I delete a slide, I will delete the row from the database but I would also like to remove the picture from the media library.

    Any help would be greatly appreciated.

    P.S. Anyone who is interested in helping or using this plugin please let me know.

  • The topic ‘deleting from the media library and other problems’ is closed to new replies.