I want to create a category page template for my homepage (3 posts)

  1. wonuks
    Posted 2 years ago #

    I want to create a category page template to display a post from a particular category on my homepage. More so, I want to make this category page my homepage. Please help me out, I know its possible.

  2. Colin Young
    Posted 2 years ago #

    Hey wonuks

    If I get what you're asking, once you create your page you could go to Settings | Reading and then choose 'A static page' and select the page.

    The thing with this is that you will have to create a page where your blogs will be shown if you want that.

  3. wonuks
    Posted 2 years ago #

    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:

    Template Name: Home page
    <div class="content">
    while (have_posts()) : the_post();
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic