Adding uploaded images to editor from metabox instead of default popup uploader

I need to find plugin or create listing of all uploaded images for some post in custom metabox. And i can click to thumbnail for add image to editor in custom format.

I downloaded a lot of photos to default upload box, and each time i will do a lot of clicks for insert new image to editor. It is very uncomfortable.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Faster Image Insert?

Moves built-in Media Manager down in a meta-box, right next to main
editing panel, so you have full control of the manager: opens it,
makes it collapse or hidden from the interface completely.

Best of all, is now you can insert image(s) much faster, and precisely
where you want them to be.

Method 2

New WP (3.3+) uses plupload, which we now fully integrated into RW Meta Box.

Examples

Adding uploaded images to editor from metabox instead of default popup uploader

The basic meta box before any file was via drag & drop.
Adding uploaded images to editor from metabox instead of default popup uploader

Plupload during upload – Status “loading/error” have background images for a clean UI.
Adding uploaded images to editor from metabox instead of default popup uploader

The “Uploaded Images” title appears only on demand.

Customize


The “TITLE string” headline (hndle bar) can be set during setup of the meta box.


The “drag & drop file here” string is customizable with the following filter:

function alter_drop_string( $string )
{
    return __( 'drag & drop whatever here', 'YOUR TEXTDOMAIN' );
}
add_filter( 'rwmb_upload_drop_string', 'alter_drop_string' );

This filter changes the string of all Plupload meta boxes, so you should care about checking $GLOBALS['hook_suffix'] and output a different string for your post/page/CPT.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x