Thanks @collin for the reply.
I actually want to create a page that can show posts from a particular category. So I created a custom category page template and used that template in creating a page I want to use as the homepage. Visiting the page I created showed the posts from the category but when I made that page my homepage the post didn’t appear on the homepage anymore.
Please I want you to help me. This the code I used for the category page template I created:
`<?php
/*
Template Name: Home page
*/
get_header();
?>
<div class=”content”>
<?php
query_posts(‘cat=42’);
while (have_posts()) : the_post();
the_content();
endwhile;
?>
</div>
<?php get_footer(); ?>