[ivory-search id="268" title="Product Search"]
$taxonomy = 'produkt-category'; //Choose the taxonomy
$terms = get_terms( array(
'taxonomy' => $taxonomy,
'hide_empty' => false,
) ); //Get all the terms
?>
foreach ($terms as $term) { //Cycle through terms, one at a time
// Check and see if the term is a top-level parent. If so, display it.
$parent = $term->parent;
if ( $parent=='14' ) {
$term_id = $term->term_id; //Define the term ID
$term_link = get_term_link( $term, $taxonomy ); //Get the link to the archive page for that term
$term_name = $term->name;
?>
-
} } ?>
Produktområder
$taxonomy = 'produkt-category'; //Choose the taxonomy
$terms = get_terms( array(
'taxonomy' => $taxonomy,
'hide_empty' => false,
) ); //Get all the terms
?>
foreach ($terms as $term) { //Cycle through terms, one at a time
// Check and see if the term is a top-level parent. If so, display it.
$parent = $term->parent;
if ( $parent=='14' ) {
$term_id = $term->term_id; //Define the term ID
$term_link = get_term_link( $term, $taxonomy ); //Get the link to the archive page for that term
$term_name = $term->name;
?>
-
} } ?>