Post thumbnails should not be affected by $content_width
|Reported by:||Viper007Bond||Owned by:|
|Component:||Post Thumbnails||Keywords:||has-patch needs-testing|
set_post_thumbnail_size( 940, 198, true ); $content_width = 640; the_post_thumbnail();
Outputs something like this:
<img width="640" height="134" src=".../filename-940x198.png" class="attachment-post-thumbnail wp-post-image" alt="" title="title" />
Note that the thumbnail is being generated correctly, but the HTML width/height is being affected by $content_width. This should not happen. If a theme author wants it to not be wider than the theme width, then they wouldn't have set the width to be wider. Post thumbnails can be used outside of the content area.