WordPress.org

Support

Support » Plugins and Hacks » Tag decription on hover

Tag decription on hover

  • samcrawshaw
    Member

    @samcrawshaw

    Hello all,

    Can someone point me in the direction of a plugin to let the tag description show when hovering over a tag link?

    Hope that makes sense. Can’t seem to word it right in my head.

    Thanx for looking,
    Sam

Viewing 1 replies (of 1 total)
  • samcrawshaw
    Member

    @samcrawshaw

    Fathomed it:

    <p>Tags:
    <?php
    $posttags = get_the_tags();
    if ($posttags) {
    foreach($posttags as $tag) {
    echo '<a href="';echo bloginfo(url);
    echo '/?tag=' . $tag->slug . '" class="' . $tag->slug . '" title="' . $tag->description . '">' . $tag->name;
    echo '</a> ';
    }
    }
    ?>
    </p>
Viewing 1 replies (of 1 total)
  • The topic ‘Tag decription on hover’ is closed to new replies.