Forums

Sub categories? (4 posts)

  1. vamped
    Member
    Posted 3 years ago #

    Hey guys,

    Wondering how to show sub-categories in an archive page? So, if the subcategory was called "one" in parent "lag", then how would I show one, and it's "brothers"?

    James

  2. PozHonks
    Member
    Posted 3 years ago #

    Use the search engine, and you will find this, edited 2 weeks ago:
    http://wordpress.org/support/topic/84230

  3. vamped
    Member
    Posted 3 years ago #

    I saw that one, and I was just trying to get the effect I want with your code, but it's not working properly. I want it to show all the entries within that subcategory.

    Make sense? :)

  4. PozHonks
    Member
    Posted 3 years ago #

    I don't understand. If you click on the sub-cat link, you got your sub-cat entries listed?
    Or, you want to list all sub-categorieS entries at once ? If so, create a category file (one for each sub-cat ID), and instead of using The Loop, use the get_posts command. See the documentation for that. With this, you can specify which categories you want to list.

Topic Closed

This topic has been closed to new replies.

About this Topic