Display Posts by Category


$lattest_args7 = array(
'post_type' => 'post',
'posts_per_page' => 5,
'cat' => 6
);
$lattest_loop7 = new WP_Query($lattest_args7);

while($lattest_loop7->have_posts()):$lattest_loop7->the_post();
echo get_the_title();

endwhile;

Advertisements

Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: