bu-ist/bu-versions

Working with page builder plugins

Closed this issue · 2 comments

Any plans for BU Versions to work on a site that is also using a page builder plugin like Beaver Builder or Divi Builder? Your plug-in is simple and exactly what I need, but it won't work because I'm also using the very popular Beaver Builder.

Reference, if helpful:

For Divi/Divi builder, the theme developer can update your functions.php file to add the custom post type you want the builder to support. But is the BU "alternate" version a custom post type?

e.g.,

function my_et_builder_post_types( $post_types ) {
$post_types[] = 'YOUR_CPT_HERE';
$post_types[] = 'ANOTHER_CPT_HERE';

return $post_types;

}
add_filter( 'et_builder_post_types', 'my_et_builder_post_types' );

Reference on Elegant Themes website.

The BU "alternate" version is a custom post type.

The alternate post type name is generated using the first 14 letters of the post type name and then appending the "_alt" string at the end. If there is a naming collision (highly unlikely), there will be numbers incremented before the "_alt" string. You can get the exact post type name by watching the bu_alt_versions_post_type_alt_name filter hook.

Examples:

page => page_alt
custom_pt => custom_pt_alt