shortcodes fail after the_content filter
-
I am using the latest version of NGG.
In my theme, I have a shortcode that gets the content from a post and then adds the_content filter to it.
If I use that shortcode within the post and then use the NGG gallery shortcode e.g
<img class="ngg_displayed_gallery mceItem" alt="" src="https://avadatest.theme-fusion.com/nextgen-attach_to_post/preview/id--4687" /> [ngg_images gallery_ids="1" exclusions="" display_type="photocrati-nextgen_basic_thumbnails" thumbnail_width="120" thumbnail_height="90"]
The shortcode fails to parse and and this is what I get within the page content https://cl.ly/image/1k2e0d2Z143j however if I remove the shortcode that has the_content filter
$content = apply_filters('the_content', $content);
the shortcodes start to work again.I found out that if I remove
add_filter('the_content', array(&$this, 'deactivate_all'), 1);
from NGG shortcode manager class, the shortodes work when multiple the_content filters are applied.Are you guys going to consider fixing this?
- The topic ‘shortcodes fail after the_content filter’ is closed to new replies.