Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
What is the output of var_dump($terms) right before your foreach? – Aaron Holbrook Jul 8 '12 at 3:18
there is something wrong with it is not a real question. And do my work for me is not very popular as well … – toscho Jul 8 '12 at 6:43
who said its not real ? or why u said that . it is the navigation that used for filtering tags you can check it here integritycorp.org/study/?page_id=34#all – Rasha Nour Eldin Jul 8 '12 at 20:44

closed as not a real question by toscho Jul 8 '12 at 6:44

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

Browse other questions tagged or ask your own question.