if “latest post” condition
-
Hello,
I have this condition statement working fine for me and outputting a list for based on custom fields
<?php $recent = new WP_Query("cat=4&showposts=15"); while($recent->have_posts()) : $recent->the_post();?> <?php $image = get_post_meta($post->ID, 'imageThumb', true); ?> <?php $imageURL = get_post_custom_values("imageBig"); ?> <li><a href="<?php echo $imageURL[0]; ?>" rel="lightbox[image]" id="thumb<?php the_ID(); ?>"><img src="<?php echo $image; ?>" width="133" height="97" /></a></li>
What I need is a condition statement to add the following to the “latest” item in that list
<li id="mycarousel-item-1">
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘if “latest post” condition’ is closed to new replies.