I think you need to change the value of id in select field
$output = "<select name="attachments[{$id}][kgal_artwork_artist]" id='attachments-'.$id.'-kgal_artwork_artist'>";
Related Posts:
- Media Custom Fields – get a value with PHP
- Save Custom Meta Value on Media Upload
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- Saving Custom Field in Attachment Window in WordPress 3.5
- Custom bulk action for media gallery items
- How to save custom fields for attachments
- How to save media files under custom folder without changing wp-config.php or changing media settings
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- modify wordpress caption shortcode
- How to add upload video option in wordpress for user?
- 3.8 Media Upload and Custom Meta Box
- WordPress Media Uploader custom Javascript not working
- Display MP3 as media using an URL from a custom field
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- Adding fields to attachment – only shows when inserting new attachments
- display custom media folders to wordpress media popup
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- How can I create more “create attachment” custom field – any idea?
- Insert wp gallery shortcode into custom textarea
- How can I attach files without using a plugin?
- How to Protect Uploads, if User is not Logged In?
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- WP_Query – Order results by meta value
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- getting all values for a custom field key (cross-post)
- How to add a custom field in the advanced menu properties?
- Custom query with orderby meta_value of custom field
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Add a menu item to WordPress 3.5 Media Manager
- Using meta query (‘meta_query’) with a search query (‘s’)
- Can I exclude a post by meta key using pre_get_posts function?
- Add validation and error handling when saving custom fields?
- How to Fix HTTP Error When Uploading Images?
- Enhance Media Manager for Gallery
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Show Custom Fields in Quick Edit
- Where are custom field values stored in the database
- Extend Media Library
- Validating Custom Meta Box Values & Required Fields
- Max length of meta_value
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Delete an attachment in the WP media modal window
- Add custom fields to wp native gallery settings
- How to fix missing custom fields after upgrading to WordPress 4.8.1?
- How to enable custom fields for pages (if not a bad practice)?
- How can I add extra attribute in the ‘Page Attribute’ section in wp-admin for pages?
- Is there a way to set default custom fields when creating a post?
- Custom post meta field effect on the performance on the post
- Upload images to remote server
- How to get custom post meta using REST API
- Custom field/meta populated by dropdown of existing posts?
- Difference between meta keys with _ and without _ [duplicate]
- Is there any action filter/hook for validating a custom field before publishing the post?
- Remove Dimension from wp_get_attachment_image
- Orderby meta_value only returns posts that have existing meta_key
- Underscores in custom fields
- What is the index [0] for on post meta fields?
- How to show all available images in WP’s media library when using the Polylang plugin?
- What is “meta_input” parameter in wp_insert_post() used for?
- Query Posts or Get Posts by custom fields, possible?
- How to enable revisions for post meta data?
- Sortable Custom Columns in User Panel (users.php)?
- Media library to list images only user uploaded
- Any way to add custom options to Gallery Settings?
- WordPress 3.5 Media Manager – add a button
- The “_encloseme” Meta-Key Conundrum
- ORDER BY custom field value
- Individual Widgets per Page
- Add subtitle to Woocommerce product title
- Best way to programmatically remove a category/term from a post
- Rendering the uploaded file in a wp.media object
- Importing data for advanced custom fields plugin?
- Gutenberg add a custom metabox to default blocks
- SQL Query to copy value of a meta_key into another meta_key
- ‘Preview Changes’ for custom meta boxes?
- How can I bulk delete media and attachments using WP-CLI?
- Adding a custom field to the site identity menu
- Using TinyMce with textareas in meta boxes on custom post types
- Filter WP_Query for posts having a certain meta-value
- How to correctly call custom field dates into a posts_where filter using SQL statements
- Remove “Insert from URL” link in Media upload – WP 3.5
- Which filters or actions to use after a media upload and delete?
- How do I force WordPress to show most recent version of images in the media library?
- WordPress Media Manager 3.5 – default link to
- Using get_post_meta with new_to_publish
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- Proper way to add a button to the top menu of the media library?
- Add a Jquery Datepicker to custom field in post edit
- add meta box – custom field : which to choose?
- Preserving line breaks when saving and displaying custom fields data
- How to return Meta data from the REST API?
- Advanced Custom Fields – Get custom fields from parent page
- Can I query custom meta data through WP_Query
- Add custom field to the archive page?
- Saving custom data for each user
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- How to wp_upload_bits() to a sub-folder?