[wp-hackers] Post Thumbnail & Twenty Ten theme

elflop at googlemail.com elflop at googlemail.com
Wed Mar 3 12:28:37 UTC 2010


[reposting from the support forums...

Playing about with this whilst upgrading my plugin. I've set a Post  
thumbnail on a single page, and the thumbnail has replaced the header image  
(currently using the Forest Floor image).

Don't think this is supposed to happen...

then I check the header.php...
`
<?php
if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
} else { ?>
<img src="<?php header_image(); ?>" width="<?php echo  
HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt=""  
/>
<?php } ?>
`
erm what? that's ridiculous! The likely hood of a thumbnail matching the  
header size for one is unlikely. More importantly Why??

Very very strange, and I was beginning to like this theme as well.

####

Can anyone on here comment as to why?


More information about the wp-hackers mailing list