Support

Account

Home Forums Backend Issues (wp-admin) Using Custom Shortcodes in ACF Fields Reply To: Using Custom Shortcodes in ACF Fields

  • Hi @ste9890

    I think that the way to solve this depends on how your ACF fields are being used..

    If they are exclusively for shortcodes you can use the do_shortcode() function to output the information like this:

    
    echo do_shortcode(get_field('myfield'));
    

    If they can contain a regular textstring as well as shortcodes you could propably make use of the_content filter:

    
    echo apply_filters('the_content', get_field('myfield'));
    

    Please note that this will also apply p tags around regular strings.