I’m having an issue with using a shortcode in an HTML field. Regardless of where the field is placed/positioned in the form editor, the output is getting rendered as a parent div of gform_wrapper (which makes column alignment impossible). Is this normal?
It would seem that this specific shortcode may be echoing content rather than returning content when running the
add_shortcode action. I would first test with a different shortcode to see if you encounter the same. If another shortcode renders properly, then this would confirm that the issue is with the way in which the shortcode function is being run. Note from that documentation:
Note that the function called by the shortcode should never produce an output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. This is similar to the way filter functions should behave, in that they should not produce unexpected side effects from the call since you cannot control when and where they are called from.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.