shortcode inside a page with another shortcode infinite load
-
Hi there. A weird issue.
Scenario:
I am using this to disable “nesting check”function your_theme_init() { // Disable nesting check to allow inserted pages within inserted pages. add_filter( 'insert_pages_apply_nesting_check', '__return_false' ); } add_action( 'init', 'your_theme_init' );
Now:
I got 4 pages with normal content plain short demo test text:
1.- Index
2.- Page-2
3.- Page-3
4.- Page-3-ChildIn INDEX I [Insert Page-2] and [Insert Page-3]
Browse Index: All is fine till here.
If in Page-3 I [Insert Page-3-Child]
Browse Index: I got the infinite loop and the page load down infinity….Using a simple template:
<?php /* Template Name: Demo_Template */ while ( have_posts() ) : the_post(); ?> <section> <div class="insert-page-wrap"> <div class="insert-page-content"> <?php the_content(); ?> </div> </div> </section> <?php endwhile; ?>
Logically I am not nesting anything
I got like
A
-B
-C
–DIs this a normal behavior if I disable nesting check?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘shortcode inside a page with another shortcode infinite load’ is closed to new replies.