custom fields display tag on hover

  • Author
    Posts
  • #503293

    I have added custom fields to all my posts and they contain links to thumbnails, What I want to be able to do is on hover display the tag for each post in a div at the top of the page.


    <?php $imgThumb = get_post_meta($post->ID,'img_thumb', true); ?>
    <?php if($imgThumb !=""){ ?>
    <div id="rollover2" style="margin-top:14px;width:300px;height:30px;display:none;">
    <?php the_tags(''); ?>
    </div>
    " title="<?php the_title(); ?>"><?php echo "<img class='thumb' src='$imgThumb'/>" ?>
    <?php } else { echo ''; } ?>

    Could really do with some help, no one seems to know how to do this.,,,

    #503511

    supportbot
    Member

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

    #503512
    #503513

    sorry wrong support forum

The topic ‘custom fields display tag on hover’ is closed to new replies.