Support » Fixing WordPress » Triple Drop Down for pupulating Custom taxonomies

  • Hi there,

    im developing a logic for populating 3 custom taxonomies into 3 drop downs, i have a custom post type dealers and under that i have 3 taxonomies
    1. State
    2. City
    3. Manufacturer

    when i select the state i have to populate the cities that are related to the state, and when i select the city and i have to populate the manufacturers list in the 3rd drop down that is related to the city that i have selected… This is the example link that i am working on

    here is the code for displaying the custom tax in drop down

    <li id="categories">
    		<h2><?php _e('Locate Dealer'); ?></h2>
    		<form action="<?php bloginfo('url'); ?>" method="get">
    				<?php $state_args = array('taxonomy' => 'state', 'hide_empty' => 0, 'depth' => 2); ?>
    				<?php wp_dropdown_categories($state_args); ?>
    				<?php $city_args = array('taxonomy' => 'city', 'hide_empty' => 0); ?>
    				<?php wp_dropdown_categories($city_args); ?>
    				<?php $man_args = array('taxonomy' => 'manufacturer', 'hide_empty' => 0); ?>
    				<?php wp_dropdown_categories($man_args); ?>
    				<input type="submit" name="submit" value="view" />

    can anyone help me for filtering the data…… im not a pro in WP, plz bare with me.

    thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Triple Drop Down for pupulating Custom taxonomies’ is closed to new replies.