• Great plugin, I use it in quite an interesting and unique way, but this is causing an issue. I populate the custom fields with jQuery once the image has been clicked: this works fine when on the image page in the media library section, however when doing this on the posts page from the ‘set featured image’ overlay/popup, the value isn’t being stored. WordPress or your plugin (I’m not sure which) would appear to be updating the values via AJAX once they’ve been input, but if updating the values via JavaScript or jQuery it doesn’t seem to pick up the changes. Could you give any insight into this please?

    Thanks,
    Theo.

    https://wordpress.org/plugins/add-custom-fields-to-media/

Viewing 1 replies (of 1 total)
  • Thread Starter Flickreel

    (@flickreel)

    No worries, I have ended up using the change trigger so that WordPress’ built in AJAX function is called.

    Like so: $(‘.className’).val(value).change();

Viewing 1 replies (of 1 total)
  • The topic ‘Set featured image jQuery population of fields’ is closed to new replies.