• Resolved Mary Linville

    (@sunshine)


    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 to false allows block to work as expected.

Viewing 1 replies (of 1 total)
  • Plugin Author wickedplugins

    (@wickedplugins)

    Hi @sunshine,

    Thanks for reporting this and for taking the time to identify the solution. I’ve corrected the code and this fix will be included in the next release which should be out next week sometime.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug & Fix: Dynamic blocks only show once on the page’ is closed to new replies.