I think i do nothing special. I get the value from a field with the regular get_sub_field() function from a repeater. Than I store it into an array.
$field_value = get_sub_field($field_name);
//cut out module name to get pure field name
$field_name = str_replace($mod_name . ‘_’, ”, $field_name);
$field_output[$field_name] = $field_value;
Hello John, thanks for your answer.
I have no problems with my own shortcodes or shortcodes in general, but only if the shortcode comes from a plugin and outputs a code template will I get these unwanted line breaks. For example with Ulitmate Member Plugin, WPForo or finally I tried to use the email download link plugin (https://de.wordpress.org/plugins/email-download-link/).
My template is entirely based on ACF. All fields of my template are saved in an array. Instead of the expression “the_field (‘prefixed_field_name’)” I use “echo $ field_output (‘field_name’)”, because I remove the prefix beforehand.