0

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..

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

get_terms() does what you want.

<?php
$cities = get_terms( 'state', array(
    'child_of'    => 3 //ID of the state term
    //other args you want see the docs
));
var_dump($cities);

Not tested but it should work.
GL

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