• Here’s the code I use to fetch my images. The problem is when I put the image in an excerpt WP doesn’t recognize it like it does text. It will space the excerpt for text but not for the image. Example can be found here: http://lucaswynne.com/

    Here’s the CSS:
    #single_wrap img.index { clear:none!important; float:left!important; margin:6px 15px 0px 0; width:auto; height:auto; max-height:420px; max-width:250px; display:block }

    Here’s the fetching code:

    <a href="<?php the_permalink() ?>">
    <?php $image = catch_that_image();
    if( $image ) { ?>
    <img src="<?php echo $image; ?>" class="index" alt="<?php the_title(); ?>" title="<?php the_title(); ?>, <?php comments_number('No comments','One comment','% comments'); ?>" />
    <?php } ?>
    </a>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to recognize images!?’ is closed to new replies.