1$defaults_param = array(
2 'numberposts' => -1,
3 'post_type' => 'post',
4 'category' => 40 ,
5 'suppress_filters' => false
6 );
7$get_featured_post = get_posts($defaults_param);
1<?php query_posts('category_name=CATEGORYNAME&showposts=5');
2
3while (have_posts()) : the_post(); ?>
4
5the_title(); // To display the title of all posts that have category name selected
6
7the_content(); // To display the content of all posts that have category name selected
8
9
10<?php endwhile; ?>