A few weeks ago I added a feature similar to Magic Fields.
Here’s the github project. The most important thing is in this file: js/custom_fields/media_image.js
Related Posts:
- Remove Dimension from wp_get_attachment_image
- Change wp_get_attachment_image attributes (src and srcset) on specific custom field
- Extend WP Customizer to make multiple image selection possible
- Add multiple images to a page sidebar
- Display thumbnail from custom field
- Add custom field to image editor
- Display info from custom fields in all images’ HTML
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- copy attachments to another post type and change attachment url
- limit amount of photos uploaded per cpt post
- Metabox with multiple fields added by user and upload box
- Add WYSIWYG to Image Description field
- Get Meta from Custom Field of Image URL
- Add url from Custom Field as ‘Featured Image’. Code not working
- How to display multiple images in custom field
- How to add image attachment to post from a single meta key (Woocommerce)
- Exclude images uploaded via meta boxes from WordPress gallery
- How to add the image URL from an external RSS feed and insert into a custom field?
- Add new image block, set default class name and update it using Javascript
- Better way to save image in custom field
- How do I add an image upload, custom field to a WooCommerce product?
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Select multiple images from custom field
- Displaying page image in the footer automatically
- Get image url using image id
- Show image if author meta (profile fields) exists outside loop
- Convert attachment ID into url?
- Custom field as featured image caption
- Display a different image for each page with editor
- Image upload and path to custom field
- How to get custom image field of specific post id
- Selectively hiding or allowing thumbnails of featured images on front page
- wp_get_attachment_image_src() with advanced custom fields returning empty
- Unable to select image with custom field
- Users uploaded image and matching an id or taxonomy
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Show image depending on the number in the custom fields
- How to delete attachments associated with custom field type when post property changes? [closed]
- Use a different catalog image than the featured image
- How to add custom fields to images for image source text and URL
- Get first URL from custom field, download and set as featured image on post publish
- Change path to child of page when uploading image via custom field
- Analyze uploaded images to get colour values
- Adding thumbnails for non-image attachments
- Upload image to wordpress
- Undefined Variable (Displaying image via custom field)
- Multiple image uploader under editor?
- Get single image from custom fields made with WCK custom fields creator
- Add image custom attribute [closed]
- How to mark a image attachment as background image?
- Crop custom image size vs actual size
- ORDER BY custom field value
- Best way to programmatically remove a category/term from a post
- Custom user avatar in the WordPress users listing
- query_posts and only show results if a custom field is not empty
- User Profile / Add Custom Fields
- Convert jQuery Datepicker Format to SQL Date Format
- Only show metabox when date-value in other metabox is over?
- Is it possible to store arrays in a custom field?
- HTML / Javascript in custom field textarea?
- How to convert custom field value to tag
- Saving an array in a single custom field
- Order posts according to user defined order for meta values?
- Calculate the sum of certain the_sub_fields
- Is it possible to order posts by two meta values?
- My metabox class
- wp_editor not saving data, and text area showing html tags
- Get specific custom field keys from a post and put into an array
- Importing from XML is ignoring serialized custom field
- Select multiple options in WordPress custom meta filed
- Get content from pages with same meta_key from Database
- How to add an extra field in a post and show it on the template
- Pass current post title to a predefined link
- Migrating old posts to new wp, how to extrapolate infos from the post body to custom fields?
- shortcode in a custom metabox
- Save attachment ID instead of URL in custom field
- Displaying a custom field containing a list creates unwanted markup
- Output custom field as ul list
- Multiple Custom Field Query
- Custom Field is getting the value of another page/post instead of the current one?
- Custom Field Date Problem
- Approach to creating a site with this structure
- how to turn a link field into a button or link text
- Use value from ACF to populate other fields
- Dynamically populate query source in Elementor post widget
- Why does my numeric meta query work only on one meta key and not the other?
- author global display format
- Problem saving meta data
- Term specific featured post on taxonomy archive pages
- WP_query returns error when used for custom widget
- Saving metadata of related post on save_post
- Custom field value link title
- How to Order Posts by Custom Fields?
- Post rating using Custom Field
- Inserting custom fields into new-post.php without using the Custom Fields Template plugin?
- How can I attach files without using a plugin?
- Advanced Custom Fields for Header that are Editable from a Page [closed]
- Change Fields of Comments and make them searchable?
- Shortcode not picking up custom field
- Order by a meta field in query loop