WordPress.org

Ready to get started?Download WordPress

Forums

Advanced category listing (6 posts)

  1. blueyez
    Member
    Posted 6 years ago #

    i have:

    i want to see categories under categories.
    what i mean

    i have category xxx. under category xxx i have 10 subcategories. every one of those 10 subcategories got 1-5 subcategories.

    when i press xxx will display my 10 subcategories, when i click one of those will appear subsubcatecories :D, and then the posts under it

    scheme
    CAT1 - SUBCAT - SUBSUBCAT - POSTS

    like folders in folders
    and i would like to add some description to each folder ( adding image to would be great )

    what do you suggest to me ??

  2. iridiax
    Member
    Posted 6 years ago #

    Here's what I did, I made a custom category page for each of my parent categories. For my parent category with a category ID of 26, I created a file called category-26.php from category.php and replaced the code to get the posts with this, which will list the subcategories of the parent:

    <ul><?php wp_list_categories('child_of=26&orderby=name&show_count=0&title_li='); ?></ul>

    Create a category description for each category (Edit categories) , and it will show when you hover over a category link, or can be displayed with this:

    <?php echo category_description(); ?>

    Here are some WordPress pages with more info:

    Category Templates « WordPress Codex

    Template Tags/wp list categories « WordPress Codex

  3. blueyez
    Member
    Posted 6 years ago #

    can u give me you blog to see it in action ?
    this is way to complicated. i have to do about:

    20 cats - 200 subcats - and around 500 subsubcats + the post included.

    should i go to a CMS ?

  4. moshu
    Member
    Posted 6 years ago #

    Having that many categories... defies the whole idea of categorization. Having a separate category for almost every post - it is exactly like not having any categories.
    I mean that wouldn't make sense in any other CMS either.

  5. blueyez
    Member
    Posted 6 years ago #

    i need what i said

    u can't have a post that got a lot of posts in

    MAIN CAT - SUBCAT - SUBSUBCAT - Posts
    - Posts

  6. blueyez
    Member
    Posted 6 years ago #

    up!

Topic Closed

This topic has been closed to new replies.

About this Topic