WordPress.org

Ready to get started?Download WordPress

Forums

Page for posts of 1 category (4 posts)

  1. threedays
    Member
    Posted 8 years ago #

    I want to have a page for all posts within one category. I have managed to exclude the post from that category from my main blog but I cannot seem to get these posts to appear on my new page.

    I am using this code in my page template:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if ( in_category(2) ) : ?>
    etc....

    Any idaes?

  2. threedays
    Member
    Posted 8 years ago #

    Not to worry
    This does basically what I want to do

    http://codex.wordpress.org/Category_Templates

    Thanks

  3. patelvijay
    Member
    Posted 8 years ago #

    could you please explain how you managed to do this?

    i have no knowledge of PHP coding... (only basic html)

    all i want to do is exclude some categories from my main posts...

  4. Kafkaesqui

    Posted 8 years ago #

    patelvijay, same request discussed here:

    http://wordpress.org/support/topic/64609

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.