WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I display parent and child taxonomies in separate drop downs?

does anyone have solution for the requirement where i have a taxonomy State which is the parent and it has a child sub-taxonomy called City, Need to display the state as a drop down, when i select the state tax i have to display the city tax in the second drop down.....kindly help me..

share|improve this question

marked as duplicate by toscho Apr 23 '12 at 7:47

This question was marked as an exact duplicate of an existing question.

get_terms() does what you want.

$cities = get_terms( 'state', array(
    'child_of'    => 3 //ID of the state term
    //other args you want see the docs

Not tested but it should work.

share|improve this answer
thanks for the response, will try n let u know – Solomon Henry Mar 28 '12 at 9:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.