Home>Support>Support for advanced custom fields 5 fields in widgets

Support for advanced custom fields 5 fields in widgets

Hi

Thanks for a great plugin, we are using it in a customer project right now.

Advanced custom fields is a pretty well know plugin/framework and in acf5 there is support for using fields in widgets.

This is kind of cool since it makes it quite easy to create custom widgets very easy, which then could be used together your page builder to build even more customized websites.

However when I try this it seems like acf5 fields are not showing up when adding this widget with the page builder.

You can find acf5 through https://github.com/AdvancedCustomFields/acf5-beta

To show you I have put together this example.

I have created a field group with 2 fields that I have decided should show on the widget Meta. https://drive.google.com/file/d/0B18DXlchF8TxRTVJTTJXVnYtdFk/edit?usp=sharing

And it shows correct when I edit this widget in the regular WordPress widget administration. https://drive.google.com/file/d/0B18DXlchF8TxVUZzQXlYTzhBYk0/edit?usp=sharing

But when I add this widget in the page builder I don’t get the fields. https://drive.google.com/file/d/0B18DXlchF8TxTllCN0ZEQWljLWc/edit?usp=sharing

Really appreciate your help/thoughts on this, thanks.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 3 months ago Greg Priday
    Hi, I Work Here

    Hi Johan

    I’m also a huge fan of ACF, but I haven’t actually tested how these 2 could play nicely together. I’ll investigate and see if there’s anything I can do on my side to get it working. Failing that, I’ll see if I can work with the author of ACF.

  2. 10 years, 3 months ago Johan Falk

    Hi Greg

    Thanks for getting back to me. Just so you know I did open an issue on afc5’s github about this matter https://github.com/AdvancedCustomFields/acf5-beta/issues/308 and actually also on another page builder support that we are looking at (http://themes.fastlinemedia.com/support/q/support-for-advanced-custom-fields-5-fields-in-widgets/), just so you know.

    Appreciate your help

    /Johan

  3. 9 years, 1 month ago Marcus Forsberg

    Hi!

    Any news regarding ACF support in PageBuilder? I’ve come halfway when trying to fix this myself: I’ve gotten the ACF fields to show up in PageBuilder when editing a widget, but I can’t get them to save. ACF hooks in to the in_wiget_form action to add its fields to the normal widget area, but PageBuilder doesn’t run this action when creating its form, so in siteorigin-panels.php in siteorigin_panels_render_form() I did this:

    $form = $the_widget->form($instance);
    do_action_ref_array( 'in_widget_form', array( &$the_widget, &$form, $instance ) );

    This makes the fields visible but the ACF JavaScript doesn’t work (conditional logic doesn’t kick in) and again, they don’t save.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More