Title: Nested Shortcodes
Last modified: November 21, 2018

---

# Nested Shortcodes

 *  Resolved [pjsullivan75](https://wordpress.org/support/users/pjsullivan75/)
 * (@pjsullivan75)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/nested-shortcodes-15/)
 * Love this plugin! I just ran into a new issue however and was curious if you 
   could suggest a fix.
 * I sometimes need to nest shortcodes, and I use the function below to disable 
   the deep nesting check. However, this time I am inserting multiple pages each
   with another plugin’s shortcode in them and the function ends with the first 
   page.
 * Do you have recommendations on how best to run this function for this scenario?
 *     ```
       function your_theme_init() {
           // Disable nesting check to allow inserted pages within inserted pages.
           add_filter( 'insert_pages_apply_nesting_check', function ( $should_apply ) { return false; } );
       }
       add_action( 'init', 'your_theme_init' );
       ```
   
 * Thanks for your help!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/nested-shortcodes-15/#post-11168008)
 * Hm, using `insert_pages_apply_nesting_check` as you have it should make sure 
   Insert Pages doesn’t stop any nested shortcodes from rendering. Perhaps the other
   plugin has code that removes `the_content` filter?

Viewing 1 replies (of 1 total)

The topic ‘Nested Shortcodes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/insert-pages.svg)
 * [Insert Pages](https://wordpress.org/plugins/insert-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-pages/reviews/)

## Tags

 * [nested](https://wordpress.org/support/topic-tag/nested/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/nested-shortcodes-15/#post-11168008)
 * Status: resolved