Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I tested this, and it’s working correctly on my end. Could you give more details about how the code is used? For example, is the code simply in a post content, or being loaded from somewhere else using another shortcode or PHP? Is the code in a “visual builder” widget?

    Thread Starter Al-Mamun Talukder

    (@realblackz)

    Hello,

    The shortcode was used on PHP then the total output was returned with do_shortcode to make the shortcodes work.

    The theme I am using is Enfold and i found similar issue using the shortcodes on page builder elements as well.

    Thanks

    Plugin Author Eliot Akira

    (@miyarakira)

    Since WP 4.2.3, do_shortcode handles shortcodes inside HTML attributes differently. This causes the issue as you described, that inside nested shortcodes, the child shortcode inside HTML attribute is run before the parent shortcode.

    To get around this, the plugin provides a function called do_ccs_shortcode. Please use that instead.

    In the case of page builder elements, since they use do_shortcode, there’s not much I can do to solve the issue. You might be able to get around it by loading the actual shortcode block from somewhere outside the page builder element.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[field id] displaying wrong output’ is closed to new replies.