WordPress.org

Ready to get started?Download WordPress

Forums

Two tiered Navigation for WordPress (7 posts)

  1. umair
    Member
    Posted 5 years ago #

    I want to create two tiered navigation for wordpress.
    First layer will include the categories
    and second layer will include sub categories belonging to that active category.

    you can see this type of navigation in action at webhostingtalk.com

    how can this be achieved? any free theme or article for such kind of navigation?

  2. jberghem
    Member
    Posted 5 years ago #

    Have you checked for plugins?

  3. umair
    Member
    Posted 5 years ago #

    yes? i couldnt found any ? can you indicate any working plugin for it?

  4. jberghem
    Member
    Posted 5 years ago #

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    You could do that sort of thing in a theme with the clever use of calls to wp_list_categories.

    The top bar would be a call using the depth=1 parameter, to only show the top level cats.

    The next bar would require getting the current category ID using get_query_var('cat'), and then using the child_of parameter to only show the children of that category.

    Both of these would then come out as UL LI lists, which you would style using display:inline and such to make them into horizontal bars.

  6. umair
    Member
    Posted 5 years ago #

    Thanks to all you for helping. As far as plugins are concerned, i feel only dtabs is the plugin which do what i have in mind... the difference in this plugin is that it shows a vertical drops down menu and not horizontal one ... i will be looking into it and customizing it for my menu.

  7. sbiehle
    Member
    Posted 5 years ago #

    umair, did you figure out a solution for this? Daniel Hoyt has explanation of how to do this with PHP, I'm wondering if you found a plugin solution?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.