$catlar = get_the_category($ids); $yayinevi = get_the_terms($ids,"yayinevi"); join(', ', wp_list_pluck($catlar, 'name'));