php // Check for content bloks before continuing, if none then exit if (!have_rows('content_blocks')) { return; } // Loop through page builder blocks while (have_rows('content_blocks')) { the_row(); // Include the correct page builder block based on the blocks type name include get_template_directory() . '/template-parts/page-builder-parts/' . str_replace('_', '-', get_row_layout()) . '.php'; }