I’m sure it’s possible, but will require some work with both PHP and jQuery. This plugin by Thomas Griffin to insert an image into a meta box would be a very good starting point.
You’ll need to do some digging around in the js files in wp-admin/js
and in wp-admin/includes/media.php
.
Related Posts:
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- wp_editor in add_meta_boxes does not show gallery
- Custom field for default gallery
- Display meta data from a custom field within plugin Category Grid View Gallery
- Add custom fields to wp native gallery settings
- Any way to add custom options to Gallery Settings?
- explode array within shortcode
- Saving Custom Field in Attachment Window in WordPress 3.5
- Call a custom field in an audio shortcode?
- How to save custom fields for attachments
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- How to save media files under custom folder without changing wp-config.php or changing media settings
- Audio player shortcode not showing up when using variable
- Create WordPress shortcode with php code inside
- Display WP-Types custom fields in post [closed]
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Shortcode To Display Post Custom Field Value Inside Excerpt
- How to create a gallery custom field for WordPress post?
- modify wordpress caption shortcode
- How to create a shortcode to print specific values stored in a post meta array?
- How to add upload video option in wordpress for user?
- Custom dropdown field added to media gallery; how to get it to save properly?
- Insert a custom field into a shortcode and use it in post(s)
- Custom wysiwyg editor doesn’t execute shortcodes?
- Redirect to another page using contact form 7? [closed]
- Custom Field 101
- shortcode in a custom metabox
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- Shortcode To Display Post Custom Field Value in Post Title, Post Content
- custom field (video/audio url) and embed functionality
- 3.8 Media Upload and Custom Meta Box
- IF Custom field value equals ZERO
- Display MP3 as media using an URL from a custom field
- Using a custom field inside a shortocde
- Enable a short code in the custom meta field
- do_shortcode close
- Plugin or shortcode for ISBN number?
- How to pass custom field value to shortcode?
- Replacing custom field with shortcode
- 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
- how can i show WordPress custom field data to my short code?
- Search fails when using the radio buttons
- Create Shortcode shows only posts with custom_field meta
- Output Custom Field value to shortcode
- PHP and Shortcode Combination
- Adding fields to attachment – only shows when inserting new attachments
- Stop truncation of shortcodes in custom text fields?
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Running a Gallery Shortcode in a Custom Fields Widget
- How can I create more “create attachment” custom field – any idea?
- Custom field in a shortcode?
- Displaying shortcode content inside custom field without images
- Parse Shortcodes in Theme’s Custom Field?
- Insert shortcode before and after a list automatically
- Media Custom Fields – get a value with PHP
- Retrieving custom field as shortcode
- Custom fields doesnt work well with any postTAB plugin
- How to include custom field in shortcode (do_shortcode) in theme file
- Shortcode not picking up custom field
- Save Custom Meta Value on Media Upload
- Update all posts automatically when using post_meta
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- How to break meta values into different items and avoid duplicates?
- Add input field to ‘Pages > Edit Page’ through functions.php
- How can I query on the year part of a complete date in a custom field?
- How to display Meta Field Value?
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- What is the cleanest way to extract custom variables from a post
- Order query by meta_value with multiple custom fields
- Display only past events on that page using Visual Composer Grid Bulider
- user Profile meta value as custom field
- Remove Body Classes
- Use WPbakery for own custom field [closed]
- Change the sort order for posts to include custom field
- Get categories query not working in function.php
- wordpress custom loop ascending descending posts by custom field
- Hide custom fields when empty
- How add multiple wp_editor_box to new post
- Related query shows same image in loop
- Insert posting automatically based in acf field
- Data URI in custom fields
- Add specific custom fields to post formats
- wp_editor on custom meta textarea field – images and html fails
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Use WP_Meta_Query To List All Values For 1 Key On Page Template
- Wrap this custom field with hyperlink link
- Multiple thumbnails and one gallery
- Metabox nonce not allowing update
- How to save media-form on custom tab
- Exclude empty fields from custom field calculation (Average)
- How do i output images from URL’s added to the same custom field key
- Filter Query Post by Custom Fields(by date)
- Archive for custom fields?