Wordpress WP_Query
/* This is a WP_Query example */ <h2 class="caps">Market News</h2> <aside class="market-news"> <?php $posts_query = new WP_Query(array('cat'=>'29','orderby'=> 'date', 'posts_per_page' => 3, 'order' => 'DESC')); while ($posts_query->have_posts()) : $posts_query->the_post(); $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'home-img', true); ?> <img class="img-responsive" src="<?php echo aq_resize($image_url[0],350,107,true); ?>"/> <div class="textBlock"> <a href="<?php echo the_permalink(); ?>" title=""><h3><?php echo the_title(); ?></h3></a> <p><?php echo get_the_excerpt(); ?></p> <a class="underline" href="<?php echo the_permalink(); ?>" title="">Read More</a> </div> <?php endwhile; ?> </aside>