Support

Account

Home Forums Front-end Issues How to get list of terms separated by comma from a Taxonomy field? Reply To: How to get list of terms separated by comma from a Taxonomy field?

  • foreach($filters as $filter):
    	$filter_fields = get_field('filter-fields', $filter);
    	if( $filter_fields ):
    		$filter_fields_slugs = array_column($filter_fields, 'slug');
            $data_filter_slugs = implode(', ', $filter_fields_slugs);
    	endif;
    endforeach;