• Resolved pjsullivan75

    (@pjsullivan75)


    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

    (@figureone)

    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.