Bug & Fix: Dynamic blocks only show once on the page
-
Because of how you are running the callback for dynamic blocks, they will only display once on a page, regardless of how many times the block actually appears in the content.
classes/class-block.php, line 434
:locate_template( "wbb-blocks/{$this->slug}.php", true, true, array(
That second
true
tells WordPress to only include the file once, regardless of how many times it is actually called. Changing tofalse
allows block to work as expected.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug & Fix: Dynamic blocks only show once on the page’ is closed to new replies.