WordPress.org

Ready to get started?Download WordPress

Forums

Tag decription on hover (2 posts)

  1. samcrawshaw
    Member
    Posted 1 year ago #

    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

  2. samcrawshaw
    Member
    Posted 1 year ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic