Hi, I am customising my wordpress theme to be more SE friendly. One thing I noted in my theme is that the tags are missing the title attribute. Example : <a href="" rel="tag">Tag 1</a> Code (markup): On Analysing my theme, get_the_tag_list() function is used to populate the tags. How can I make the tags appear as below? <a href="" rel="tag" title="Tag 1">Tag 1</a> Code (markup): I checked in the Codex reference but didnt find any solution. Let me know if you can help me in getting this to work. Thanks, Sandeep
Use get_the_tags() . <?php $post_tags = get_the_tags(); if ($post_tags) { foreach($post_tags as $tag) { echo '<a href=" '. get_tag_link($tag->term_id) .' " rel="tag" title=" '. $tag->name .' ">'. $tag->name .'</a>,'; } } ?> PHP: