I’ve noticed since WP version 3.2.1 that the_post_thumbnail() function no longer returns the default but instead displays the default image.
The codex stipulates that one can use
the_post_thumbnail(); // without parameter -> Thumbnail the_post_thumbnail('thumbnail'); // Thumbnail (default 150px x 150px max) the_post_thumbnail('medium'); // Medium resolution (default 300px x 300px max) the_post_thumbnail('large'); // Large resolution (default 640px x 640px max)
But this does not seem to be true anymore, the thumbnail only works when one uses the_post_thumbnail(‘thumbnail’);
I thought it was an error in my theme, but I just tried it with both 2011 and 2010 themes and I get the same result. Could this be a bug?
- The topic ‘the_post_thumbnail() is not displaying the default thumbnail’ is closed to new replies.