Support

Account

Home Forums General Issues Filtering content inside shortcodes? Reply To: Filtering content inside shortcodes?

  • It could have something to do with the order that the filters are run. ACF does run shortcodes on wysiwyg fields.

    Since it appears that your filter is altering the content of the shortcode before it is run, it could be that the shorcode is run before your filter. You could try setting a high priority on the filter for ACF to make the changes before ACF runs the rest of the content filters.

    
    add_filter("acf_the_content", "the_shortcode_filter", 1);