Support

Account

Home Forums General Issues Comma separated array values Reply To: Comma separated array values

  • If the ‘filament’ field is a straight repeater, I don’t think you need the foreach loop:

    try this:

    
    $filamente = get_field( 'filament' );
    	if( $filamente ):
    	    $data_filament_slugs = implode(",", array_column($filamente, 'slug') );
    	endif;