Support

Account

Home Forums Backend Issues (wp-admin) ACF Rendering Shortcodes

Unread

ACF Rendering Shortcodes

  • HI!
    I am trying to have a custom field filled with shortcodes to display in elementor (shortcode field) in a template

    the content is like this:
    [tp id=1][tp id=2][tp id=3][tp id=4]

    its working fine if i use text field, but I wanted to be able to have multiple lines in the box – changing to text area or wisiwig etc no longer renders shortcodes on the front end of the site.

    ive added this into functions:

    add_filter(‘acf/format_value/type=textarea’, ‘do_shortcode’);

    but it doesn’t seem to do anything?

    really want i want to be able to do is show it on backend like this:
    <!–note1–>[tp id=1]
    <!–note2–>[tp id=2]
    <!–note3–>[tp id=3]
    <!–note4–>[tp id=4]

    there might be a better way to achieve this! open to suggestions!

    Thank you!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.