diiferent catagories in different pages (4 posts)

  1. inbalisrael
    Posted 3 years ago #

    how can I show posts from different catagories in different pages?
    I want a page for each catagory.

  2. Jerry
    Posted 3 years ago #

    Custom Page Templates

    Create a page, assign it a custom template with a customized WP_Query, that's it.

  3. inbalisrael
    Posted 3 years ago #

    I'm just a begginer...
    I'll need more help than that.
    how do I assign it a custom template?

  4. Jerry
    Posted 3 years ago #

    Yea I admit that was abit bland even for me. But I'm hyped on some energy drinks at the moment. Hahahaha

    I had actually started on a tutorial, but to save my breath, I give you this: How To Create A Custom Page Template In WordPress

    Once you understand what a custom page template is and how to use one, then you can begin coding your own. You'll need to use the WP_Query like I stated above.

    Example of a custom post page template

    Since you're wanting pages by categories, you'll need to read up on the category parameters of the WP_Query class.

Topic Closed

This topic has been closed to new replies.

About this Topic