Below is a snippet from my HTML code:
<img src="<?php echo get_post_meta($post->ID, 'thumbnail_value', true); ?>" title="<?php the_tags(); ?>" alt="" class="thumb"></a>
In the "title" attribute, I have included <?php the_tags(); ?>
, which is a Wordpress function.
When inspecting the code in Firebug, the output looks like this:
li class="view view_2 view-first">
<a id="50" href="" class="thumb_link" onclick="update_default_proj_list(1, '', '_'); getProject(50);"><span class="selected"></span><img
src="13370318682.jpg" title="Tags: <a href=" http:="" whiteandgold.ro="" realty="" ?tag="house"" rel="tag">house</a>, <a href="http://
whiteandgold.ro/realty/?tag=rent-3" rel="tag">rent</a>" alt="" class="thumb">
I attempted to hide this text using:
img.thumb[title] {text-indent:-9999px;}
a[rel~="tag"] { text-indent:-999px;}`
Unfortunately, this method did not work as expected. You can also see an example here (try inspecting a thumbnail).