Physical organization of wordpress media library (Real Media Library plugin)

Introduction. In the above screenshot you can see a folder structure built with premium plugin Real Media Library. Now I want to create an extension plugin which can organize the folder structure into physical folder structure – RML is only visual structure. Update #2 (2017-01-27): Check out the answer! Have a look at Physical organization … Read more

Programmatically adding images to media library

I am trying to programmatically add multiple images to media library, I uploaded the images to wp-content/uploads, now I try to use wp_insert_attachement. Here’s the code, however it’s not working as expected, I think metadata is not properly generated, I can see the files in media library, but without a thumbnail, also if I edit … Read more

Enhance Media Manager for Gallery

I would like to enhance the Media Editor, after WordPress 3.5, on the gallery view. I want to add a new select field on the right side and send the selected values to the gallery shortcode. I think, the function wp.media.gallery in wp-includes/js/media-editor.js is the default function to insert the gallery shortcode. I want to … Read more

Add a menu item to WordPress 3.5 Media Manager

How can add a new menu item underneath the “insert From URL” on the left sidebar in the new WordPress 3.5 Media Manager? I’ve been looking at the backbone js and tried my hand at hooking into it with my own JS but without success. Edit 2: This seems to do the trick: http://sumtips.com/2012/12/add-remove-tab-wordpress-3-5-media-upload-page.html It … Read more