Can an image have more than one parent_post?

Images can only be attached to a single post, and they only get attached to the post they were originally uploaded to, and only if it was uploaded to a particular post to begin with. The only way to know if an image is used by a post is to parse the HTML of the … Read more

How can I upload an image for background use using the Theme Editor in WordPress?

Giving the CSS of background #FFFFFF url(‘images/newbackground.gif’); is just giving an example based on basic CSS. Be careful when copying the suggestions made in the book because you missed an important colon after background. It should be background: #FFFFFF url(‘images/newbackground.gif’); Also, you need to make sure the URL part of the CSS is correct for … Read more

Link to large image version instead of original?

You can modify the content that is displayed on the site by hooking in to the the_content filter. However, this is where the hard work starts. You need to identify all the images, figure out the links to the large sizes, and replace them. This could be a costly operation, so you might want to … Read more

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

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