Parent
'; echo '- ';
foreach ( (array) $parents as $parent ) {
$imgURL = wp_get_attachment_image_src($parent->image_id)[0];
$colour = get_term_meta($parent->term_id, 'color', true);
$colour = ($colour != "") ? $colour : "var(--light)";
echo "taxonomy ))."\">";
}
}
}
$children = apply_filters("taxonomy-images-get-terms", "", array('having_images' => false, 'taxonomy' => 'company', 'term_args' => array('parent' => get_queried_object()->term_id)));
if (count($children) > 0) {
echo '
Children
'; echo '- ';
foreach ( (array) $children as $child ) {
$imgURL = wp_get_attachment_image_src($child->image_id, 'detail')[0];
$colour = get_term_meta($child->term_id, 'color', true);
$colour = ($colour != "") ? $colour : "var(--light)";
echo "taxonomy ))."\">";
}
}
?>