Rotating image does not work for custom image sizes

From examination, it looks like a bug. I can’t think of a good reason it shouldn’t apply those changes. Reported: http://core.trac.wordpress.org/ticket/19889 Patch in that ticket fixes the problem. Also, in response to your other question, you can define IMAGE_EDIT_OVERWRITE to true in the wp-config file to make it not create those oddly named files and … Read more

Faster way to put images into a blog post by using Add Media dialog

Nothing here is a silver bullet, but here are some suggestions: If you find yourself using your library more than uploading new images, you can make the default tab “Library”: add_filter(‘_upload_iframe_src’, ‘change_default_media_tab’); function change_default_media_tab($uri) { return $uri.’&tab=library’; } If you want the default tab to be the uploader, but you want it to load faster, … Read more

How do i save and retrieve custom attachment meta?

The field id has to match in both function so if your field id is foo the when you save you need to look for that id and when you save a checkbox field its smart to remove it if not set so: function image_attachment_fields_to_save($post, $attachment) { if( isset($attachment[‘foo’]) ){ update_post_meta($post[‘ID’], ‘foo’, $attachment[‘foo’]); }else{ delete_post_meta($post[‘ID’], … Read more

How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?

Andrew, In the case where your custom post type exists on only one sub-site of your Multi Site installation, you can in your template file in which controls the display and output of your custom post type work with simple conditional functions such as; is_singular(‘post_type_name’); is_user_logged_in(); …and in-fact it might well be as simple as; … Read more

The uploaded file exceeds!

A php.ini in your WordPress directory has no effect if PHP is running as a service, not per CGI or FastCGI. Find the php.ini in your PHP installation path, adjust the values there and restart PHP and your web server. So … until here this was off topic because general PHP questions belong to Stack … Read more

Interface for logged-in users to upload/download files

You can have a look on the following plugin for this purpose: WordPress Download Monitor I have found this plugin very useful for uploading/downloading files. This plugin will store files in the web server. This has also built in Download Page function with built in sorting, pagination, search feature and many more.

Setting multiple image urls using WordPress’ Media Uploader

There’re 2 things you should consider: change send_to_editor inside click callback. This will change this function only when needed, e.g. when uploader is shown. This also prevent unwanted things with global variables. You should always backup the send_to_editor. Here’s my sample code (not tested): jQuery(document).ready(function($) { $(‘#upload_image_button_main’).click(function() { var backup = window.send_to_editor; window.send_to_editor = function(html) … Read more