Use custom image size in admin panel
Image sizes are hard-coded throughout WordPress core; Tom’s comment to adjust the dimensions of the built-in image sizes is the best approach.
Image sizes are hard-coded throughout WordPress core; Tom’s comment to adjust the dimensions of the built-in image sizes is the best approach.
Here is a complete tutorial with source files that do exactly what you want, You can upload multi images by cloning the input field and also you can preview, delete images with ajax, add multi metaboxes to multiple/different post types and more. http://www.deluxeblogtips.com/2010/05/howto-meta-box-wordpress.html And here you can find some good information on how you call … Read more
I think you can go about the filter list_terms_exclusions, but i don`t tested. example: function fb_list_terms_exclusions($args) { if ( ‘media-upload-popup’ != $where ) return $where; if ( !current_user_can(‘manage_categories’) ) $where = ” AND t.slug NOT IN (‘uncategorized’, ‘category-2’)”; // slug of categories return $where; } add_filter( ‘list_terms_exclusions’, ‘fb_list_terms_exclusions’ ); update for the comments to this … Read more
To save the menu order use wp_update_post() with each attachment ID and its new menu position: $thisattachment = array(); $thisattachment[‘ID’] = $thisid; $thisattachment[‘menu_order’] = $new_menu_position; wp_update_post($thisattachment); EDIT – assuming these are already attachments and you’re updating them? Otherwise you have to insert the attachments first with wp_insert_attachment
You can do this with a three easy steps: Create a directory in your theme that will hold all the new icons /themes/theme-name/images/icons/ Copy all the images from /wp-includes/images/crystal/ to your new directory Hook into the wp_mime_type_icon filter in your functions.php file Your filter would look like this: function change_mime_icon($icon, $mime = null, $post_id = … Read more
The first thing you need to do is disable direct access to the directories the files are stored in by uploading blank index.html files to wp-content/uploads/ and all of its subdirectories. That way no one can go browsing around your upload directories finding that media manually. In order to keep search engines from crawling your … Read more
The Gallery tab of the Media Uploader for an individual post is located at this link: http://example.com/wordpress/wp-admin/media-upload.php?post_id=999&tab=gallery (change the post ID as needed.) I have no idea how robust this is, but I did a quick test on my own site, and the changes I made were saved correctly.
Every time you upload an image, WordPress automatically create duplicate copies of that image and re-size them to thumbnail and medium size. Most of the time, these images are not used. In addition, there could also be some images that you have uploaded, but did not use them in the post. These unused images could … Read more
You can check out the following plugins that use an external storage for media. Some of them supposedly use the build in media (S3), while other simply allow you to use the storage in your post (azure) via a button. http://wordpress.org/extend/plugins/windows-azure-storage/ , yes Microsoft wrote this plugin. http://wordpress.org/extend/plugins/tantan-s3-cloudfront/ Amazon S3 for WordPress. http://wordpress.org/extend/plugins/cdn-sync-tool/ Several services(cloudfiles, … Read more
This tutorial explains basic use of WordPress media uploader. http://wp.tutsplus.com/tutorials/creative-coding/how-to-integrate-the-wordpress-media-uploader-in-theme-and-plugin-options To add image sizes use <?php add_image_size( $name, $width, $height, $crop ); ?> Read more on this at Codex http://codex.wordpress.org/Function_Reference/add_image_size