I am using wordpress 3.1 and when I use the featured image metabox to upload sometimes I see in my posts the image as part of the content and sometimes the header image changes as well. I cannot understand what is the reason. Any help will be appreciated.
I am using
if ( has_post_thumbnail() )
{ // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
Update
sorry i got confused with the editor. anyway what i need right now is to display the thumbnail in a size of 300x300 but have a larger image to display when the user clicks on the thumbnail. i saw the loop-attachment.php and i think i have to use this one.
<?php $attachment_page = get_attachment_link( $attachment_id ); ?>
<?php $thumb=get_the_post_thumbnail(); ?>
<a href="<?php echo $attachment_page; ?>">
<?php the_post_thumbnail();?>
</a>
but it is not working. i dont know if i have to post it as a new question also.