I am trying to create a simple hack since the fields assigned to widgets created by advanced custom fields (pro) are working only inside the WordPress widgets section.
What i want to do is not display / make it work custom fields inside the widget edit area, i want to create a Js function which automatically add a custom widget (with a preset field which is just a reference for the acf fields) inside a layout row, note that this function will be triggered within the page builder section but not inside the page builder (a button placed in a meta box).
Could you point me in the right direction ? I just don’t want study all the source code :)
Currently i am able to do that with some extra steps:
1. create a custom element within a meta box (acf fields)
2. save page
3. add the custom element widget with the fields reference to the layout
4. save page again
I would like to skip the passage number two and adding the widget directly within the metabox with javascript.
Anyone ?
Hi Luca
Thanks for the wait.
We have a post type builder almost ready to launch. It’s specifically for Page Builder. We hope to have it released next Friday. If you can wait that long it’ll most likely solve the problems / requirements you have.
Thanks for the reply, i am now curious about this post type.
For now this is all the info I have:
Plugin Name: SiteOrigin Custom Post Type Builder
Description: Create page layouts and use any widget as a custom field type
It’s a plugin we’ve been meaning to add for a long time. We’ve just developed our own TinyMCE field, that’s nearing completion. It’s quite crucial for this plugin. Hopefully they’ll all come together for a release next Friday.