Home » Topics » Priority Support » ACFW incompatible with WPMU

ACFW incompatible with WPMU

ACF Widgets Support Priority Support ACFW incompatible with WPMU

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2155
    Anonymous
    Inactive

    Hi,
    one more bug in Multisite. If I create a acfwidget & one acf field group in one site, after export in php the code and insert it in function.php (so i can see the acf field in all the website in the network), if i go in another website the acf widget it is not associated to the related acfwidget…

    Thanks

    #2156
    Daron Spence
    Keymaster

    Hi Fabio, so ACFW works by storing some values in the database to keep track of the new widgets you have registered. This means, that the widget would need to be created within each sub site. Lucky for you, I’ve built in a system similar to the one in ACF, where you can define the new widgets with a little bit of code. You will need to do a little troubleshooting I would imagine, but after that, things should work nicely.

    Towards the bottom of this page, is the info on adding widgets. Let me know if you have any problems with the implementation. http://acfwidgets.com/documentation/hooks/

    #2157
    Anonymous
    Inactive

    Ok Daron, cool! there is a automatic export PHP code or i must to write it?
    thanks

    #2158
    Daron Spence
    Keymaster

    You’ll have to write it for the time being. I’m working on adding an export tool of some kind, I just haven’t had time.

    #2159
    Anonymous
    Inactive

    Ok don’t worry it’s not a problem…
    one more question… i’ve created the widget on the fly in php, but i don’t understand as call the template…

    example
    array(
    ‘title’ => ‘TEST’,
    ‘description’ => ”,
    ‘slug’ => ‘test’,
    ‘id’ => ‘Test’,
    ),

    don’t read the file widget-test.php

    thanks

    #2160
    Daron Spence
    Keymaster

    Are there any errors? Can you possibly paste the full snippet you’re using?

    #2161
    Anonymous
    Inactive

    Ok, perfect! Don’t worry!
    One more thing…

    there is a way to insert all files widget-*****.php inside a specific folder inside the theme example: /widgets/ ?

    Thanks

    #2162
    Daron Spence
    Keymaster

    Not at this time, no.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘ACFW incompatible with WPMU’ is closed to new replies.