i used this code
<?php
$termID = 22;
$taxonomyName = "tagportifolio";
$terms = get_term_children( $termID, $taxonomyName );
$count = count($terms);
echo '<ul id="portfolio-filter">';
echo '<li><a href="#all" title="">All</a></li>';
if ( $count > 0 ){
foreach ( $terms as $term ) {
$term = get_term_by('id', $term, $taxonomyName);
$termname = strtolower($term->name);
$termname = str_replace(' ', '-', $termname);
echo '<li><a href="#'.$termname.'" title="" rel="'.$termname.'">'.$term->name.'</a></li>';
}
}
echo "</ul>";
?>
to get the child terms of specific taxonomy term but there is something wrong with it , but i dont know it any help please thanks
var_dump($terms)right before yourforeach? – Aaron Holbrook Jul 8 '12 at 3:18