Home Forums Backend Issues (wp-admin) Filter WP gallery shortcode


Filter WP gallery shortcode

  • Hey,

    I’m trying to filter WordPress gallery and image caption shortcodes through the following:


    I know these work when either a gallery or image caption is inside the main textarea.

    I was wondering, if anyone knew how to apply the same filters to the same shortcodes that are inside ACF WYSIWYG fields? Or is a better method?

    Thank you!

  • Any shortcodes that work in the standard WP WYSIWYG editor in WP should work in an ACF WYSIWYG field. Since these filters are applied in the gallery shortcode then they should still be called if using that shortcode.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Filter WP gallery shortcode’ is closed to new replies.