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);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.