Hello,
I was recently trying to modify my template to use the tags as the alternative text on images, so I came up with this:
<img src="<?php echo get_option('home'); ?>/wp-content/themes/themename/images/slideshows/image.jpg" alt="<?php the_tags(); ?>"/>
But it doesn't work. It basically shows the text right alongside the images. The same sintaxis does work for the permalink, for example:
<img src="<?php echo get_option('home'); ?>/wp-content/themes/themename/images/slideshows/image.jpg" alt="<?php the_permalink(); ?>"/>
So I'm a bit confused. If I were to use the get_the_tags function I'd have to make the call and all, so I don't know if it would work at all anyway. Does anyone have an idea of what could be done here? Thank you very much in advance! --dubsnipe