Quantcast
Viewing all articles
Browse latest Browse all 13924

tonyzomba on "PHP wizz needed. Display subcategory of a custom taxonomy."

Hey i have an update.... With the following code but depth changed to "2" i get in the list all the Countries and Cities as subcategories.

<div class="input">
<?php
$args = array(
	'show_option_none'   => _d('Select city',402),
	'orderby'            => 'name',
	'order'              => 'ASC',
	'hide_empty'         => 0,
	'echo'               => 1,
	'selected'           => $city,
	'hierarchical'       => 1,
	'name'               => 'city',
	'id'                 => 'city',
	'class'              => 'city',
	<strong>'depth'              => 2,</strong>
	'taxonomy'           => 'people-from',
	'hide_if_empty'      => false );
wp_dropdown_categories( $args );
?>
    </div>

Now the question is what do i change in this table to get rid of the Countries in my dropdown list?


Viewing all articles
Browse latest Browse all 13924

Trending Articles