1

If you want to get custom taxonomy comma separated listing than we can go with WordPress inbuilt function get_the_term_list() get_the_term_list( $id, $taxonomy, $before, $sep, $after ) $id : Post ID $taxonomy : Name of taxonomy $before : Leading text $sep : String to separate tags $after : Trailing text for example, <?php echo ...


1

Instead of echoing right away, save the category names into an array, and then you can implode the array, which means output it with whatever separators between items you wish: <?php if(get_the_terms($post->ID, 'kernal_category', true)) { // Create an empty array $categories = []; $kernal_category = get_the_terms($post->ID, '...


Only top voted, non community-wiki answers of a minimum length are eligible