Get custom taxonomy
// Get taxonomy $terms = get_the_terms($post_id, 'taxonomy-slug'); $taxonomies = []; foreach ($terms as $term) { $taxonomies[] = $term->name; } $taxonomy = join(", ", $taxonomies);