ngg_images shortcode not being hidden by strip_shortcodes
-
Hi there,
I have a custom theme which uses NextGen Gallery and we have found that our excerpts are not stripping the ngg_images shortcode.
The php is written the following way:
<?php echo strip_shortcodes( get_excerpt( 200 ) ); ?>
This does succeed in stripping other shortcodes, such as WD Instagram shortcodes and other gallery plugins we are using. So I know the code is ok. For some reason, stripping ngg_images is just not being recognised as a shortcode perhaps?
In the past we have been solving this issue by simply pushing the shortcode text below the 200 character limit (so adding more text before the shortcode). This band-aid solution is no longer acceptable and we need to get to the bottom of this now.
We are using the latest version of the free plugin with the latest version of the NextGen Plus plugin too.
Any help would be greatly appreciated.
- The topic ‘ngg_images shortcode not being hidden by strip_shortcodes’ is closed to new replies.