ID);
if ($post_categories) {
$output = '';
foreach ($post_categories as $post_category) {
$t_id = $post_category->term_id;
$color_id = "category_color_" . $t_id;
// retrieve the existing value(s) for this meta field. This returns an array
$term_meta = get_option($color_id);
$color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1';
$output .= '
' . esc_html($post_category->name) . '
';
}
$output .= '';
echo $output;
}
?>