title: Relationship among different taxonomy terms in wordpress
body: <p>I have four different taxonomy terms defined in my wordpress theme which are </p>
  
  <ul>
  <li>Continents</li>
  <li>Countries</li>
  <li>States</li>
  <li>Cities</li>
  </ul>
  
  <p>My problem is that I am not able to figure out how can I make it possible for user to specify parent-child relationship in terms of different taxonomy.
  for example, if user adds 'Asia' under continents, 'India' under country, 'Delhi' under state and 'New Delhi' under city, how to specify India as child of Asia, Delhi as child of India and New Delhi as child of Delhi
  Please help me. thanks.</p>
  
  <p>code for custom taxonomy is this:
   `</p>
  
  <pre><code>add_action('init', 'register_my_taxes_states');
  
  function register_my_taxes_states() {
  
  
   register_taxonomy( 'states',
  
  array (
            0 =&gt; 'schools',
            1 =&gt; 'universities',
            2 =&gt; 'institutes',
            3 =&gt; 'colleges',
          ),
      array( 'hierarchical' =&gt; true,
          'label' =&gt; 'states',
          'show_ui' =&gt; true,
          'query_var' =&gt; true,
          'show_admin_column' =&gt; false,
          'labels' =&gt; array (
        'search_items' =&gt; 'state',
        'popular_items' =&gt; '',
        'all_items' =&gt; '',
        'parent_item' =&gt; '',
        'parent_item_colon' =&gt; '',
        'edit_item' =&gt; '',
        'update_item' =&gt; '',
        'add_new_item' =&gt; '',
        'new_item_name' =&gt; '',
        'separate_items_with_commas' =&gt; '',
        'add_or_remove_items' =&gt; '',
        'choose_from_most_used' =&gt; '',
      )
  ) ); 
  }
  </code></pre>
  
  <p>`</p>