Home › Forums › General Issues › Acf is adding line breaks an paragraphs in Shortcode output code › Reply To: Acf is adding line breaks an paragraphs in Shortcode output code
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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.