You have to trigger a change event on your field, i.e. hrld_media_input.attr("value", ui.item.value).change();
. This will ensure that attachment_fields_to_save will get triggered.
Related Posts:
- Display info from custom fields in all images’ HTML
- copy attachments to another post type and change attachment url
- ajax delete value from custom field array
- Save attachment custom fields on front end
- Custom field not updating when value is empty
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- How can I attach files without using a plugin?
- Remove Dimension from wp_get_attachment_image
- How to enable revisions for post meta data?
- Best way to programmatically remove a category/term from a post
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Storing meta fields multiple times OR once with multi dimensional array?
- display specific custom fields
- passing argument to get_template_part() or a better way to code
- Is it possible to store arrays in a custom field?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- importing data from non-wordpress mysql db
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Unable to save datetime custom meta field using update_post_meta() function
- Create custom field on post draft or publish?
- get_post_meta fields don’t show up on posts page
- Cannot edit post meta fields with rest API
- Add a post meta key and value only if it does not exist on the post
- Move value of one custom field to another
- Order posts according to user defined order for meta values?
- Displaying posts with only upcoming dates according their custom field date value
- Function to change meta value in database for each post
- Get a post_id where meta_value equals something in a serialized meta_value field
- Get aggregate list of all custom fields for entire blog
- using multiple meta_key and meta_value in query_posts
- How can I sort homepage by a meta value?
- Get specific custom field keys from a post and put into an array
- MySQL Query that looks for post with Custom Field, then changes Category
- ACF: How to get the full field name (meta_key) by a field key?
- How can I store a file in the database in the same way WordPress and ACF do?
- filtering custom post types via meta data drop down
- How to add a new meta key and assign timestamp to posts
- If meta key exists in get posts function otherwise create it
- How do i save and retrieve custom attachment meta?
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- Read / Watch / Listen times – meta
- How do I Implement Atomic Update of Post Metadata?
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- modify wordpress caption shortcode
- Why is my Custom Meta Box Field Inputs NOT saving?
- Get registered custom fields or post meta even if empty
- Displaying multiple URLs as custom field values
- Custom dropdown field added to media gallery; how to get it to save properly?
- Stop sending email everytime I updates my post
- Best way to store everyday post views?
- shortcode in a custom metabox
- Unable to get specific value from post meta
- Problem with saving large amount of data in postmeta/usermeta
- Custom meta is not being saved
- How to get posts with a metadata numeric key greater than X?
- IF Custom field value equals ZERO
- How to use media upload on metabox post page without breaking TinyMCE?
- How do i get the attached images with custom value checked?
- Let’s Create Custom Field Template Documentation
- Branch made by several custom values
- WordPress creates new lines in postmeta table on post update
- User customising position of WordPress Featured Image
- Can I save post meta programatically without setting metaboxes?
- Insert image into sub-field with update_post_meta
- Show custom field on attachment page?
- How to use conditional statement with custom field
- Save attachment ID instead of URL in custom field
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- If metabox has content display content
- Display Meta Data with HTML?
- How can I add/update post meta in a admin menu page?
- wordpress get_post_meta / the_meta to output custom field value
- Get author total post votes from post meta
- Group Posts By Custom Meta Value: Date
- Meta field bulk editing no longer working in WP 6.0 [closed]
- How to display custom fields in hestia theme
- How can i set media attachments to the author of the post or page for already existed posts with attachments
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- How to speed up post list slowed by update_meta_cache()?
- WordPress Blocks, setAttributes not saving
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Allow HTML in Custom Metabox area
- Custom field metabox not showing in back-end
- Update custom field on page specific to logged in user
- Save, update, get and sanitize post meta as HTML not plain
- Create Meta boxes dynamically
- How to delete attachments associated with custom field type when post property changes? [closed]
- Saved Post Meta Array Returns as String
- display custom media folders to wordpress media popup
- Problem saving meta data
- Check if value exists before saving
- Get meta value when the page is a blog archive
- change attachment custom field onChange event
- Custom Field: Display only if a specific key is selected outside the loop
- Make Custom Fields Public in JSON – API
- Retrieving custom field as shortcode
- Order by a meta field in query loop
- save all acf options in one meta_value [closed]
- WP Query Args – search by meta_key or title
- Search for meta_query does not return any result if combined with title