wp_post_thumbnail ALT and TITLE tags won't work
-
Hi
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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_post_thumbnail ALT and TITLE tags won't work’ is closed to new replies.