Title: Nested insert pages
Last modified: September 1, 2016

---

# Nested insert pages

 *  Resolved [miks8715](https://wordpress.org/support/users/miks8715/)
 * (@miks8715)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/nested-insert-pages/)
 * I read a couple of identical questions on the forum but I’ve tried your suggestion
   and nothing changed, so I want to make sure the problem is the same. I have three
   pages: A, B and C. In page A I insert the code insert page which includes page
   B and in page B I insert the code insert page which includes page C. Result is
   that page A only displays page B. Is this something I fix using the code to disable
   the insert_pages_apply_nesting_check? Cause I’ve pasted the code
 *     ```
       function 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', 'theme_init' );
       ```
   
 * into my theme functions.php but I had no luck…
 * [https://wordpress.org/plugins/insert-pages/](https://wordpress.org/plugins/insert-pages/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nested-insert-pages/#post-7573299)
 * Hm, disabling the nesting check should allow what you’re describing. Can you 
   verify that the action hook you dropped in functions.php is actually running?
   You can do this by adding an `error_log("your message here");` line after the`
   add_filter()` line in the code snippet above. Then you can check your web server
   error logs or your debug log to see if that message gets printed out when the
   page is loaded.
 *  Thread Starter [miks8715](https://wordpress.org/support/users/miks8715/)
 * (@miks8715)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nested-insert-pages/#post-7573327)
 * Hi Paul,
    Thanks for your answer. I had already checked if the function is actually
   running and it is. I’ve done some further testing and I found out that the proble
   arises when I use the “inline” option. Without inline option enabled the nesting
   works well. Is this something easy to fix you think? Thanks again for your precious
   help
 *  Thread Starter [miks8715](https://wordpress.org/support/users/miks8715/)
 * (@miks8715)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nested-insert-pages/#post-7573328)
 * I’ve used another workaround and I’m happy with it. Indeed it’s not advised to
   have nested layers of inline inserted pages.
    Thank you again

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Nested insert pages’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [miks8715](https://wordpress.org/support/users/miks8715/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/nested-insert-pages/#post-7573328)
 * Status: resolved