Special purpose photos with each post

Well one photo can be assigned as the thumbnail as you can see in the post editor screen. Otherwise as the comment above suggested create a post meta field for example ‘my_post_image’ and place the id of the image attachment in that field. That is how WordPress saves the post thumbnail (look in the database, … Read more

Images don’t show up

Finally, I’ve got it! Sniffing the HTTP resonses indicated that a few extra bytes were being inserted between the headers and body of the http response, resulting in bad image data. Further investigation revealed that these characters represent a Unicode Byte Order Mark (BOM). These, in turn, were caused by a Windows editor that saved … Read more

Imported thumbnails have incorrect URL

The easiest way is to use the Cache Image plugin, which ‘sideloads’ images in your posts that are from other domains. I’ve had mixed results, mainly because it seems to not work well for thousands of posts and images – if your site is smaller you may have better results.

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

Large size image breaks template layout

In your functions.php file, you need to define $content_width, which will cause WordPress to scale large-size images, and also embedded videos, accordingly. e.g. if the width of your content area is 600px: if ( ! isset( $content_width ) ) { $content_width = 600; } You will probably also want to add accompanying CSS, e.g.: #content … Read more