Sending custom data with Media Frame Model

I have an option on post edit screen that can change it to full-width. Unfortunately, $content_width still follows the standard one with sidebar 780px (without saving the post or a whole refresh). I have figured out the method responsible for getting this data. It’s action wp.media.model.Query.sync() method in js/media-models: https://github.com/WordPress/WordPress/blob/master/wp-includes/js/media-models.js#L1225 Anyone knows how to pass … Read more

How to re-arrange media uploaded using : media_handle_upload() as per year / month

I have been facing this issue that all the new media files are getting uploaded to single folder which was auto-generated during initial site development. Now since all new images are getting uploaded to single folder its very difficult to maintain. Settings to organize media are enabled but that works only if media is uploaded … Read more

How to host different file formats/types for a media attachment without creating multiple attachments?

For a better browser compatibility we often have to maintain multiple format of a media. For example: Image – JPG & WebP Image animated – GIF & WebP Image transparent – PNG & WebP Video – MP4, WebM, OGG Multiple format file of a same media belongs to a single media attachments logically. Having multiple … Read more

What’s the best “insert all images” plugin?

I’ve tried several plugins that supposedly allow you to “insert all images” after using the flash based uploader to upload multiple images. However, I still haven’t found one that ties in well with the latest version of wordpress in a non-hacky way. Which plugins the most for inserting multiple images? image http://img221.imageshack.us/img221/4746/pictureu.png 2 Answers 2 … Read more