Forums

Different categories on different pages (3 posts)

  1. miler55
    Member
    Posted 5 months ago #

    Hey everyone.
    I just start using wordpress,and i am not good with php so i have one question.
    I wanna make 2 pages for example Page1 and Page2 in main menu bar and two categories for posts "category1" and "category2". Page1 will be template-blog1.php and Page2 template-blog2.php. Now i need to arrange that posts (those who are category1) shows on Page1, and posts(those who are category2) shows on Page.
    I saw that code for calling post is "<?php if (have_posts()) : while (have_posts()) : the_post(); ?> " so I just need to call exactly category that i need.
    I hope that i explain my problem like i should and everyone understand. If there is anyone who is good with php pls help me.
    Thanks a lot,and sry for bad english .

  2. alchymyth
    The Sweeper
    Posted 5 months ago #

  3. miler55
    Member
    Posted 5 months ago #

    Thanks a lot.That's Exactly what i was looking for.

Reply

You must log in to post.

About this Topic