WordPress.org

Ready to get started?Download WordPress

Forums

Add the post excerpt into a hover over box (1 post)

  1. Benjamin_Thomas
    Member
    Posted 2 years ago #

    I've been trying to add a title and excerpt that will appear when the mouse hovers over a thumbnail. The title appears fine, but I'm having trouble adding the excerpt. For some reason it appears below the thumbnail and I have no idea why.

    The code I'm using is::

    <div class="imgteaser">
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('feature');?>
    	<!--span class="more">&raquo; More</span-->
    		<span class="desc">
    			<strong> <?php the_title(); the_excerpt() ?> </strong>

    My website address is http://www.songanddanse.com/dev

    Thank you! Any help would be appreciated. Ben.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Benjamin_Thomas
  • This topic is not resolved
  • WordPress version: 3.2.1