WordPress.org

Ready to get started?Download WordPress

Forums

Category Index (7 posts)

  1. thefastcook
    Member
    Posted 7 years ago #

    I've been trying to make heads or tails on creating fairly simple 3 level category index or menu. I've tried implementing various code from this forum and links elsewhere but they don't seem to work for me. What I'm basically looking to do is this type of design:

    topic -> list of articles -> article

    with each click opening up the article or article list in the main part of the page. So far all my attempts have been messy as all hell. Any help would be very much appreciated!

  2. thefastcook
    Member
    Posted 7 years ago #

    I guess this isn't an issue for most people but if anyone needs the code I ended up getting this to work:

    <?php list_cats(FALSE, '', 'ID',
    'asc', '', TRUE, FALSE,
    FALSE, FALSE, TRUE,
    FALSE, FALSE, '', FALSE,
    '', '', '1,33',
    TRUE); ?>

    I just whacked it somewhere in the sidebar.php file and it worked. Still can't get my categories to link to my pages though.

  3. thefastcook
    Member
    Posted 7 years ago #

    Alright I notice that posts can be linked to categories by ticking the box but does anyone know if pages can be linked to categories through the admin panel or is there another way? Any help is appreciated.

  4. Just Thomas Misund
    Member
    Posted 7 years ago #

    I don't really know if this will help you, but try and check out the Post2Page plugin. I think its listed in the codex list of plugins. It makes pages of your posts, so if you want to do something to a page that you can do with a post, it might be worth a shot. Good luck :-)

  5. thefastcook
    Member
    Posted 7 years ago #

    It doesn't seem to be what I need but thanks for throwing it my way anyway! As things stand I'm not sure that there is an easy option to categorize pages so I'll skip it for now.

  6. Just Thomas Misund
    Member
    Posted 7 years ago #

    How about making your pages children of parent category pages?

    Like:

    Category Page
    >Page 1
    >Page 2
    >Page 3
    Second Category
    >Page 1
    >Page 2
    >Page 3

    You can exclude children pages where you want to list the categories, and exclude the parents when you want to list all pages, and yet again list 'children of' if you want to list the pages in a certain category.

    The downside to this is of course you can't put a page in several categories.

  7. estjohn
    Member
    Posted 7 years ago #

    I am not sure if it is what you are looking for, but on my site, I use the "Fold Category" and "Fold Page" plugins. For example, on Aleeya.net if you goto the ABOUT page, on the left it lists the sub pages. If you click on Kudos (Pages) it hides the about sub pages and expands the Kudos Pages.

    Using the Fold Categories, it does the same... clicking on Word Press on the left expands the sub categories.. and I am using a similar plugin for the archives of 2003,2004 etc

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags