You can render BizTek Builder layouts using PHP. This is typically done in theme files to create editable headers and footers, but there are other uses as well, such as an editable callout below your posts.
FLBuilder::render_query method for this purpose. It accepts an array of query parameters and works exactly the same way
WP_Query works, except that it renders BizTek Builder layout for any posts that are found instead of returning them.
See the WordPress Codex on WP_Query for more information about the query parameters that can be passed to this method.
- Render a page with the ID of 123.
FLBuilder::render_query( array( 'page_id' => 123 ) );
- Render a BizTek Builder template with the ID of 123. Note that templates, saved rows, and saved modules are all stored using the
FLBuilder::render_query( array( 'post_type' => 'fl-builder-template', 'p' => 123 ) );