wp_post_thumbnail ALT and TITLE tags won't work
I am having problems overriding the default action of the_post_thumbnail(). I have looked around and everyone says this code will work:
<?php the_post_thumbnail('thumbnail', array( 'alt' => 'alttext', 'title' => 'titletext' )); ?>
I get a thumbnail allright but the alt text and title text is from the original image, not ‘alttext’ and ‘titletext’ …
Has this been changed in WP 3+? I have no idea why this isn’t working.
- The topic ‘wp_post_thumbnail ALT and TITLE tags won't work’ is closed to new replies.