Forums

Category pages and listing subcategories as subheaders (1 post)

  1. saynernz
    Member
    Posted 2 years ago #

    Hi there,

    My question is something I thought would be simple, but I've spent the last few days trying out all kinds of things and nothing seems to give me the result I'm looking for.

    What I want to be able to do is have a category.php template that will list one parent category's subcategories as unlinked headers and post titles under their specific headers as links to their corresponding posts. I only want one category to a page.

    As below:

    <h1>Parent Category Title</h1>
    Parent category description.
    <h2>Subcategory Title 1</h2>
    <permalink>Post Title 1</permalink>
    <permalink>Post Title 2</permalink>
    <permalink>Post Title 3</permalink>
    <h2>Subcategory Title 2</h2>
    <permalink>Post Title 4</permalink>
    <permalink>Post Title 5</permalink>
    <permalink>Post Title 6</permalink>
    etc

    Is this possible? I hope this makes sense. I don't have much of a background in php so I'd really appreciate any help or pointers. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.