Forums

[resolved] Excerpt text wrap around post thumbnail image?? (3 posts)

  1. mesotu
    Member
    Posted 1 year ago #

    Hi all,
    I am hoping this is an easy fix. Can anyone tell me what to add to this code to make the excerpt text wrap around the post thumbnail image? Thank you very much for your help. Most appreciated.

    [mod: please use the code button when posting code, to keep it intact and readable]

    <?php if(get_post_meta($post->ID, 'postImage', true) != NULL) { ?>

    <div class="post-thumb">

    "><img src="<?php bloginfo('template_url'); ?>/includes/timthumb.php?q=100&w=280&h=100&zc=1&src=<?php echo get_post_meta($post->ID, 'postImage', true) ?>" alt="" />

    </div>
    <?php } ?>

    <?php the_excerpt(); ?>
    " title="Read More <?php the_title(); ?>" class="more-link">Read MoreĀ»

  2. Riko
    Member
    Posted 1 year ago #

    Hi, I guess you have to float your image in your style.css:
    .post-thumb {float: left;}

  3. mesotu
    Member
    Posted 1 year ago #

    Hi Riko,
    I figured it out a little while ago and this is precisely what I did. Thanks for taking the time to respond. Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic