Support » Plugin: Custom Field Template » [Plugin: Custom Field Template] mediaPicker in the file field doesn't work.

  • When I set the fieldset to multiple, mediaPicker in the file field doesn’t work.

    This is my settings as follows:
    /*———-

    [field_test]
    type = fieldset_open
    multiple = true
    multipleButton = true

    [image]
    type = file
    relation = true
    mediaPicker = true

    ——–*/

    When I select a image file, “mediaPicker” doesn’t work. And then, the page will be refreshed by compulsion.

    Could you fix this problem? Thank you.

    http://wordpress.org/extend/plugins/custom-field-template/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same issue with the Media Picker.

    In Firefox, I turned on the Error Console and found something interesting. When I click on the OR Select by Media Picker link, I get a jQuery error:

    Error: jQuery(this).parent().parent().parent().parent().attr(“id”) is undefined
    Source File: http://website.com/wp-admin/post.php?post=13&action=edit&message=1

    Looks like it’s not working because of a jQuery bug/error/issue.

    I’ve replicated this with CFT as the only plugin installed and with the TwentyTen theme.

    I have same issue,

    and tried this…
    [ Moderated, don’t use URLs shortners if you do not have to. ]

    http://wordpress.org/support/topic/plugin-custom-field-template-media-picker-not-inserting?replies=19

    However, I was not able to fix the issue.

    I finally figured this out.

    I noticed the Select by Media Picker option doesn’t work if you put the code for the media upload inside a fieldset.

    I had it like this:

    [example_fieldset]
    type = fieldset_open
    legend = Example Fieldset

    [imageUpload]
    type=file
    size=40
    relation=true
    hideKey = true
    label = Upload an image
    mediaLibrary = true
    mediaPicker = true
    mediaRemove = true

    [example_fieldset]
    type = fieldset_close

    Removing [imageUpload] outside of the fieldset will make the Select by Media Picker option work.

    Karun

    (@karunshakya45)

    But if you remove the [imageUpload] and place it outside of the fieldset the how to duplicate it??

    Version 2.1.1 fixes this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Custom Field Template] mediaPicker in the file field doesn't work.’ is closed to new replies.