Different image sizes for home and post pages

If your talking about the images that are written into $post->post_content (the_content()) you’ll either need to write a filter that strips out all images and replaces them with the smaller version. Or you could just use CSS. For CSS make sure you have body_class() in your body tag then you can localise a maxwidth to … Read more

Custom Image Thumbnails of Different Sizes

Add this code to your functions.php if(function_exists(‘add_theme_support’)) add_theme_support(‘post-thumbnails’); // Set the thumbnail size add_image_size(‘custom_logo’, 200, 200, true ); add_image_size(‘custom_website_thumb’, 450, 200, true ); add_image_size(‘custom_print_ad_thumb’, 200, 400, true ); Put this in your post template where you want to see the image. <?php echo get_the_post_thumbnail($post_id, ‘custom_logo’); ?> You can also wrap it in a link like … 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.