Viewing 1 replies (of 1 total)
  • Thread Starter arafat21

    (@arafat21)

    Accidentally I use b-quote, so here is the code again:

    <div id="featured" class="clearfix">
    <?php $recent = new WP_Query("cat=824&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
    
            <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="featured_post">
            	<div class="featured_post_inner">
    
                <div class="attach"><?php the_post_thumbnail(array(150, 150, true)); ?></div>
    
                <h2><?php the_title(); ?></h2>
                </div>
            </a>
    
    <?php endwhile;?>
    </div>
Viewing 1 replies (of 1 total)

The topic ‘the_post_thumbnail() issue with image ‘alt’ attribute’ is closed to new replies.