I have a Page in Wordpress that is a Blog Page Template. Now my issue is that it displays ALL the posts. I only want it to display posts assigned to a certain category
How do I do that?
Here is my blog.php page: I guess you have to edit it here right?
/*
Template Name: Blog page
*/
$gogo_blog_text_no_posts = get_post_meta($post->ID, 'gogo_blog_text_no_posts', true);
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('posts_per_page='.$gogo_blog_text_no_posts.'&paged='.$paged);
$postcount = 0;
while ($wp_query->have_posts()) : $wp_query->the_post(); $postcount++;
//the loop goes here
$wp_query= null;
$temp = $wp_query;
?>