• Hello. First of all, I would like to make it very clear that I have ABSOLUTELY NO KNOWLEDGE on programming and WordPress as a whole. All I did was installing it and inserting a new theme.

    To the question itself: I want to have categories with subcategories, but I don’t want the subcategories to be displayed at the sidebar. I want the users to have to click the main categoris in order to be able to see the subcategories (and possibly having to click sub-subcategories then to see the final content). Is that possible? Just to it’s possible to picture this in a better way, it’s for a lyrics translation site. So what I wanted to do would be something like Band name -> albums/singles -> songs one by one.

    Thanks in advance for anyone who reads / replies to this, and tell me if the explanation is not clear enough >< I’ll try and find another way to put it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Using wp_list_categories('title=&depth=1') in your sidebar/navigation menu will limit the displayed category list to the top level categories only. Visitors will then be taken to a category listing. If you want to only list sub-categories on that page, you’ll probably need to create a custom category template.

    http://codex.ww.wp.xz.cn/Category_Templates

    Thread Starter shuugo

    (@shuugo)

    Wah >< I am sorry, but I don’t know where wp_list_categories is. I don’t even know WHAT it is. I’m sorry for having no knowledge at all, but could you please explain it again? I have no experience with programming or with WordPress…so all those changes, at least in the beginning, will be fairly difficult for me.

    Thanks for the reply, and I hope I can count on deeper explanation on this solution ><

    Thread Starter shuugo

    (@shuugo)

    Bump =/ I really need help with this.

    Thanks in advance once again for anyone who replies.

    Are you using widgets to display your sidebar? If so you may not be able to do what you want. I don’t think that the category widget allows you to limit the depth of categories.

    If you are not using widgets then you need to go and look at Appearance > editor > sidebar.php here you will find the code that generates the category links that esmi mentioned. Just go in there and edit that.

    Hi,

    Check with this drop down menu plugin:

    http://ww.wp.xz.cn/extend/plugins/wordpress-css-drop-down-menu/

    Thanks,

    Shane G.

    Thread Starter shuugo

    (@shuugo)

    @crondeau: I’m currently using widgets, so the code didn’t work >< but how can I use categories without using widgets?

    Thanks a lot for answering guys, this is really helping me.

    If you are not using widgets then you need to go and look at

    Appearance > editor > sidebar.php

    and then edit the code like esmi mentioned.

    You may also want to look at the plugin that Shane mentioned.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Using categories dropdowns (or something like that)’ is closed to new replies.