WordPress.org

Forums

[Plugin: More Fields] Remove images (4 posts)

  1. staxx-x
    Member
    Posted 6 years ago #

    It seems not possible to remove images after they have been set. I'd like an extra button next to the "update list" in a post/page to remove a image, or set the image to none.

    When I do remove images from the media browser, the list will automatically update, and set the image to the first from the media browser. So when I had 5 images, and remove 4 of them, all 5 will be set to the latest image, in stead of cleaning the list.

  2. Matty Cohen
    Member
    Posted 6 years ago #

    Hi staxx-x,
    A "quickfix" solution I found would be to add an empty option field on top of the file list when clicking "update list". I did this by doing the following:

    Add html = html + '<option value="">-- No File --</option>'; above line 85 (which looks like this: html = html + '<option value="' + file['guid'] + '">' + file['post_title'] + ' (' + file['post_mime_type'] + ')</option>';) in more-fields-write-js.php.

    This is a temporary solution that has been tested briefly (not extensively at all). The plugin developers may have a more solid solution to this.

    Cheers, hope this helps,
    Matt.

  3. scitrenbaum
    Member
    Posted 6 years ago #

    How do you get images to work with the More Fields plugin? I have been looking everywhere and have found no solution. I need to be able to have the user select from a list of images. Any suggestions would be awesome.

  4. Matty Cohen
    Member
    Posted 5 years ago #

    Hi scitrenbaum,
    The most direct solution would be to use a "File List" field, generated by More Fields. This field will generate a list of files that have been uploaded and attached to the page/post from within WordPress.

    I hope this helps. :)

    Cheers,
    Matt.

Topic Closed

This topic has been closed to new replies.

About this Topic