Support

Account

Home Forums ACF PRO Shortcodes in Textarea? Reply To: Shortcodes in Textarea?

  • @hube2‘s code has a bug. Corrected code

    
    function text_area_shortcode($value, $post_id, $field) {
      if (is_admin()) {
        // don't do this in the admin
        // could have unintended side effects
        return;
      }
    
      return do_shortcode($value);
    }
    add_filter('acf/load_value/type=textarea', 'text_area_shortcode', 10, 3);