Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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

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.