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
- get_the_ID() retrieves same ID on Gutenberg’s Query Loop
- Create shortcode for metabox gallery
- Best way to insert a list of links into a post outside of the_content
- Alike Shortcode using in Custom Shortcode
- Automatically Add Tags Taxonomy in Post from Custom field’s value
- Automatically Add Custom Fields Value as Tags
- How to get data from user meta custom fields created with acf-pro plugin?
- how to turn a link field into a button or link text
- How to add if statement on WordPress shortcode output
- Gutenberg add a custom metabox to default blocks
- How to display custom fields in hestia theme
- How to update only certain custom fields in a the cache of a page?
- Woocommerce products search with custom fields
- Custom meta fields and meta keys
- Making custom meta box required (with error message if not filled in) on Gutenberg
- HTML for adding a meta box (basic text field) to page editor?
- Convert author metadata to a custom field
- get_post_meta shortcode returns empty field
- Adding Custom Metadata to my Archive/Posts page
- Block error message in foreach loop when looping through ACF field
- Is the use of many custom field not good for server?
- Move the post title to another field
- How to save multiple values with same meta_key, each value linked to another tag id
- Move the metaboxes to the very top of post editor
- ACF multi taxonomy on filterable gallery
- Arrays in custom fields or is there a better way?
- How to improve my non-unique metadata MySQL entries?
- Use value from ACF to populate other fields
- Dynamically populate query source in Elementor post widget
- Custom date column in user table not sorting correcting
- Set class if a meta value is set within post archive
- Add link to wordpress field data
- Adding text box with add_meta_box
- pass custom value from single.php to another file via get
- Changing form action based on selected value
- Custom User Dashboard
- change the h3 subtitles of the wordpress gallery shortcode