- This topic has 0 replies, 1 voice, and was last updated 13 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The topic ‘Lightbox Ultimate – Shortcode Inside Another Shortcode Not Filtering’ is closed to new replies.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox Ultimate F.A.Q/Instructions › Lightbox Ultimate – Shortcode Inside Another Shortcode Not Filtering
If you are using a shortcode inside another shortcode and the innermost shortcode is not getting filtered/displayed then check this post:
Shortcode nesting will only work if they are created using the proper WordPress shortcode API. Just because something looks like a WordPress shortcode does not mean it was created using the WordPress’s shortcode API. So if you have a shortcode that is not working when placed inside another shortcode please make sure that this shortcode was implemented using the WordPress’s shortcode API (the developer of the plugin will be able to help you).
With that said, you can also try the following tweak to alter the Lightbox Ultimate’s shortcode filtering priority and see if it helps:
Open the “wp_lightbox1.php” file and search for the following line of code:
add_filter('the_content', 'do_shortcode',11);
Once you find it replace it with the following:
add_filter('the_content', 'do_shortcode');
Now try it out and see if the nested shortcodes are all getting filtered.