• Hey guys

    i am trying to show latest post title(only) from particular category along with only one(1) image from those title

    any one can help me to form this qurrey ?
    below is current qurey

    <div class="right">
    		<?php $recent = new WP_Query("cat=15&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
    <div class="archive">
    		<div class="thumb"><a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a></div>
    		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    
    		</div>
    		<?php endwhile; ?>
    	</div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need help for complex qurey syntax’ is closed to new replies.