• Resolved jwack

    (@jwack)


    This is my first time using wp so please bare with me. Ive been reading posts for the last 2 hours on categories, pages, tags, and how to structure navigation. I would like some help finding the best scenario for what I want.

    Say my main navigation is Home – Reviews – Games – Shows.

    Each of those 4 items will have their own categories. When you go to say the Review page, it will only list the categories under review.

    For some reason I cant wrap my head around getting this setup, thanks for any help ahead of time!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Create the main categories then create subcategories under each one in Dashboard – Posts > Categories. Thing is, if I remember well, you can’t have subcategories with the same name. So if that’s not the case with your installation, then you have no problems.

    Instead of having wp_list_pages in your main navigation, you’ll have wp_list_categories.

    Thread Starter jwack

    (@jwack)

    I did the above. I have my 4 main pages set up. I ended up using custom templates for each page. In those templates I have my sidebar showing all sub-categories under a certain category.

    <?php wp_list_categories('show_count=1&hide_empty=0&title_li=&child_of=9'); ?>

    If im on page “reviews” it only shows sub-categories that are under main category review. If im on page “games” it only shows sub-categories under the main category games. Thats works great.

    Problem is, when I click on any of those sub-cats the page (archive,php) it takes me to shows all the categories again. Im trying to firgure out how to code archive.php so it keeps the correct categories depending on which page im coming from.

    Any ideas?

    Thread Starter jwack

    (@jwack)

    suggestions?

    I got a sub-category working fine, but it’s simple. I actually can’t work out what it is you want to do so I’m unlikely to be able to help.

    Thread Starter jwack

    (@jwack)

    Sorry I think im making things more complicated than they need to be. I just want a couple pages to have their own separate categories. And when your on a certain page and start clicking down into the categories you keep that same list of categories related to that page.

    I think this post might help me…

    I’ll give this a go as it sounds helpful.

    Thread Starter jwack

    (@jwack)

    If im on the review page or the game page and click a category it takes me to archive.php. Is there a way on archive.php I can tell which page I came FROM? That way I could display a certain sidebar depending on which page i came from?

    Thread Starter jwack

    (@jwack)

    I found the what I was looking for finally.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Proper way to build category / site structure’ is closed to new replies.