WordPress.org

Ready to get started?Download WordPress

Forums

Getting a page to display category posts (4 posts)

  1. foolfillment
    Member
    Posted 9 years ago #

    I've been looking around but can't find a topic that explains how to do what I want.

    What I want is a way of getting one of my pages to display like a category archive. Icould just manualy creat a list of links to different pages/categories but I'd rather be able to use wp_list_pages as I only want one page to do this and will be adding more 'static' pages frequently.

    Any ideas, I thought I could make a category-5.php template but can't get it to work.

    Any ideas?

    Thanks in advance.

  2. Beel
    Member
    Posted 9 years ago #

    Here is what I used, following the thought process to create my own pages with different tags.
    http://codex.wordpress.org/pages#Pages_can_use_Different_Templates

  3. foolfillment
    Member
    Posted 9 years ago #

    I saw that and have tried adding a category-5.php file to use with my page but I just can't work out what I need to put in it so it'll display all the posts in that category. All it seems to do still is display the default page template.

    I've used different templates for other pages but not to display a category archive. If I can't get it to work I'll just have to hand code a list of links to pages and category archives. but that's a faff as I'll have to keep adding to it every time I make a new page.

  4. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    Try using one of the tags from Customizable Post Listings by Coffee2Code.

    EDIT: category-5.php is NOT a page template. It is a Category Template used when someone clicks on that category's link. You could use that, too, but I'm not sure if that's what you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.