WordPress.org

Ready to get started?Download WordPress

Forums

How to add Multilevel Drop Down Boxes (6 posts)

  1. ImTheMechanic
    Member
    Posted 2 years ago #

    I am having a hard time trying to find a tutorial on how to do this. When I search it always comes up with menu stuff so sorry if I missed a discussion about this.

    What I want to do is make a 3 level drop down box that function in hierarchical manner (on a page not menu). You can see the current setup all on 1 tab at
    imthemechanic.com/exhaustzone

    So to make it clear what I am trying to accomplish is when you select the make of the vehicle the next dropdown populates with the models of that parent and on the selection of the model it populates the years available to the next and brought to that archive upon that selection of the year.

    If i could get some help with this or even pointed in the right direction it would be awesome.

    Thanks in advance!

  2. Pankaj Pandey
    Member
    Posted 2 years ago #

    learn http://codex.wordpress.org/Category_Templates to get idea and solution

  3. ImTheMechanic
    Member
    Posted 2 years ago #

    I was looking at this http://codex.wordpress.org/Function_Reference/wp_dropdown_categories and have used it to create my one dropdown that is on there now, but instead of having 1 dropdown box I wanted to split into 3 and have them all related in a hierarchical way. This way it does not create an extremely long drop down and makes it more manageable as the post auto populate into this menu.

  4. Pankaj Pandey
    Member
    Posted 2 years ago #

    you are close your link have a argument called 'child_of'=> 0, here you need to pass category id
    also there are a argument 'depth'=> 0, so you can restrict to 1 level by changing it value. all other thing you can do by ajax/javascript.

    if you combine both link you will have a solution.

  5. ImTheMechanic
    Member
    Posted 2 years ago #

    Thanks, I should be able to figure it out from here. Appreciate pointing me in the right direction!

  6. Pankaj Pandey
    Member
    Posted 2 years ago #

    i also appreciate Google your question for solution as i am sure some similar plugin available on web you can modify that code for your need

    also i you can look this solution at http://wordpress.org/support/forum/wp-advanced

Topic Closed

This topic has been closed to new replies.

About this Topic