BB Templates/Content and WP All Import

Hello Beaver Team,

I am trying to use a plugin called WP All Import to import a CSV file of over 200 pages into the site. This plugin gives us the option of importing custom fields. Using the auto-detect it finds these 3 Beaver Builder fields.

_fl_builder_draft
_fl_builder_data
_fl_builder_enabled

I am not sure what to enter into the actual field values to import my chosen BB page template when I run the import. There is an autodetect feature but it loads a bunch of code I do not understand. Can anyone help me out here… I’d love to import all these pages with BB enabled and the template of my choice pre-loaded.

I’ve attached a few screens to show what it looks like.

Data Fields

Automated Find

Hi Carl,

It’s hard for me to say for sure as I’m unfamiliar with that plugin, but it does appear to be working correctly. Each post uses the three custom fields that you mentioned. The _fl_builder_data and _fl_builder_draft fields are supposed to have code in theme, so you’re good there as well.

Give it a shot and let me know if you run into any issues.

Thanks,
Justin

Hey Justin,

I’ll try like this but I am trying to get this to import a specific BB template for each page. Using that auto-detect It entered all that data but did not give me a choice of templates or anyway to know what it’s actually importing, lol.

Yes, tried it using the autodetect and it seemed to load ALL my beaver builder modules from all the pages into one. I just want to isolate one template I have saved.

Hi Carl,

I’m not sure here. Have you tried the WordPress exporter/importer? That should work as well. Is there a reason you don’t want to use that?

Justin

Justin,

I am importing pages from a .csv file that don’t exist in another site yet. This is a way to quickly create them en-mass without hand creating each page. Using a BB template I hoped to quickly populate them with editable content. It’s not too big of a deal to manually install the template on each page but it would be nice if it was auto-mated.

Hi Carl,

Thanks for the additional info, that makes sense now. You should be able to import the layout for a single template using _fl_builder_data. It sounds like maybe there is a mapping issue. Each of those values that you see represent a single layout, so it looks like it might be pulling in all of them rather than pulling in one.

Justin

Gotcha, So i need to isolate which one is my actual layout. I can’t just use something like _template_name?

Templates are stored as a custom post type called fl-builder-template. Other than that, they work the same as posts and pages do. You could try using the post id if that plugin allows you to.

This plugin will automap the fields if they have an entry in the database. I am not sure how to call the BB template though?

_fl_builder_template? Then the post ID in value = 570?
_fl_builder_draft - imports nodes not a template
_fl_builder_data - imports nodes not a template
_fl_builder_enabled - 0 or 1 = I got this working to enable it.

I just know how to call the template post type if that makes sense?

Unfortunately, the only fields for builder posts are the three that you originally mentioned. The plugin you are using doesn’t have a way to specify a post?

Justin, it likely does but will only automap if the field exists in the database somewhere, hence how it discovered my Genesis SEO settings and the BB draft/date and enable/disable.

So my guess is I need to set the BB to Enabled and then call the custom post type = 570 using another parameter. I’ll keep digging.