more than one upload directory?

Using a stock WordPress installation, no. WordPress, by default, stores uploads in the /wp-content/uploads/yyyy/mm/ directory for single sites. For network installations, it stores them elsewhere and maps a similar permalink structure to the new location. I can see what you’re trying to accomplish by keeping things in separate directories, but you’d have to revise a … Read more

WordPress Fancybox Resize Large Image

What you will need to do is edit your theme’s functions.php file to add a new image size. Scroll to the bottom and inside the php tags enter: add_image_size( ‘fancybox-full’, 800, 9999 ); This will create an uncropped image 800px wide, whenever an image is uploaded. You will then need to edit the anchor for … Read more

Combining media queries with image sizes

First off, kudos to this pretty cool solution. I think you’re on the right track and not sure how much more you could do. You could certainly replicate the above with PHP & CSS, thus not requiring jQuery. It would require you to have an array of your sizes and just loop through them. This … Read more

Disable image resizing on specific upload fields

WordPress will always create the additional images for “thumbnail”, “medium” and “large” sizes. The options panel doesn’t add an additional size- it just resizes the one you’ve selected using CSS. If you want to override that CSS you can hook in an additional stylesheet that will override the id on that option.

Changing upload dir in a plugin regardless of post type

Typo: ‘ not is ‘ You have a weired Editor. You’re simply using the wrong type of quotes: “ should be ” ‘ should be ‘ Here’s the changed function: function wpse43013_custom_upload_directory( $args ) { // If the parent_base is “members”, upload to plugin directory if ( ‘members’ === get_current_screen()->parent_base ) return wp_parse_args( $args, array_fill_keys( … Read more

Upload .doc to blog

The better way would be to use Windows Live Writer. It’s a Microsoft product that’s part of the Windows Live Essentials suite. This program allows you to copy-paste content from a Word document, or just build the post out as you would in Word. But the advantage is that it can also talk directly to … Read more

Remove fields on media uploader for custom page type – not working for “From Computer” or “From Url” tabs?

Version 1 Deals with filtering based on Post ID *From Computer* tab we need to retrieve the $attachment_parent_id: add_filter(‘attachment_fields_to_edit’, ‘wpse_53600_remove_media_upload_fields’, 10000, 2); function wpse_53600_remove_media_upload_fields( $form_fields, $post ) { $our_page_id = 4; $post_id = !empty( $_GET[‘post_id’] ) ? (int) $_GET[‘post_id’] : 0; $attachment_parent_id = !empty($post->post_parent) ? $post->post_parent : 0; if( $post_id == $our_page_id || $attachment_parent_id == … Read more