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


ACF Rendering Shortcodes

    • tcltd

    • November 13, 2020 at 9:18 am

    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.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.