dear friends i want to display 6 images from my recent posts using Custom fields and when i post 7th image 1st would be disappear from widget so there will be only 6 images also tel me how to display images in the row regards http://www.mobilesreviewpk.com/ want to display like http://www.mobiledukaan.com/ under heading of RECENT ADDED MOBILE REVIEWS <?php while (have_posts()) : the_post(); ?> <?php $price = get_post_meta($post->ID, 'price', true); ?> <?php $model = get_post_meta($post->ID, 'model', true); ?> <?php $image = get_post_meta($post->ID, 'mobile_img', true); ?> <?php if($image){ ?> <div style="float:left;"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" width="85" height="130" style="float:left;"/></a> <br /><span><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php echo $model; ?></a></span><br /> <span><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php echo $price; ?></a></span> </div> <?php } ?> <?php endwhile; ?>