• Hello,

    I have been trying to figure this out. Maybe someone could help me out.

    I’m using <?php wp_dropdown_categories(); ?> and some arguments to display the top level of categories.

    What I’d like to do is have 3 drop down menus (basically dropdown 1, 2, and 3 on the same page setup as step 1, 2, and 3). The first dropdown lists all the categories. Once a category is selected it populates the second dropdown which shows that categories sub-categories. Once you select a sub-category from the second dropdown, it will populate the third drop down with all the posts from the selected sub-category. Then once you select a post from the third dropdown it will go to that post.

    Kind of confusing writing it out, if you’d like any clarification let me know.

    Any help with this would be greatly appreciated. I’m pretty sure there is a simple way of doing it, I just can’t picture it. Thanks for looking.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d build a custom plugin for something like that and maybe use a little javascript.

    I built one for a client of mine that wanted to have 4 drop down selects each for a specific category. What you want sounds to be a chained select and can be done but would take some JS or AJAX is my suggestion.

    Jared Ritchey

    Thread Starter notyournews

    (@notyournews)

    Thanks for the key-words ‘chained select’. Researched it a little, and figured out a solution. Not dynamic like I would like, but it will work for now.

    Hey what option did you finally decide upon, I built a chained select for a mortgage site using ajax. I think i’ll publish it on my blog.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘<?php wp_dropdown_categories(); ?>’ is closed to new replies.