• Resolved nicolasgweb

    (@nicolasgweb)


    Hi,

    First of all thank you for your plugin is really great.

    Here is my problem : The custom post type in my theme work with custom fields made with Advanced Custom Field Pro and when I update custom post fields with native content like post title, excerpt, published date… Everything are syncronised on the child site but if I update only ACF fields it’s not working.

    I was wondering if you could give me any hint ?

    Thank you in advance.

    Nicolas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author MagicStick

    (@magicstick)

    It should absolutely work fine. The only thing I can think is that you haven’t synced your ACF FIELDS to your destination site. You can use something like this https://www.ads-software.com/plugins/acf-multisite-sync/ to ensure, or export the acf php code or just manually do it via the import/export tool that ACF PRO provides.

    Let me know if I can help in any way.

    Thread Starter nicolasgweb

    (@nicolasgweb)

    Hi,

    Sorry for my late reply, I made a lot of test before answering. So I’m sure my ACF fields are synced by the PHP way explain here : https://www.advancedcustomfields.com/resources/register-fields-via-php/ ( the same handmade theme run on all the subsites )

    But for information, if I change the hook’s priority, it’s seem to work :
    Line 918 in persist.php :
    add_action(‘save_post’, ‘mpd_persist_post’, 30);
    Line 204 in postform_ui.php :
    add_filter( ‘save_post’, ‘mpd_clone_post’, 30 );

    I have to continue my tests because the custom taxonomies doesn’t replicated.

    Maybe I’m in a wrong way ? I’m on a subdomain configuration ( I know it’s not supported but the replication of pictures work ) with the latest version of WordPress and ACF Pro.

    I keep you informed, anyway great plugin I think I just have to adapt it.

    Nicolas

    Plugin Author MagicStick

    (@magicstick)

    Ah. This actually makes sense to me. Pretty sure ACF’s priority is 20 on the save post action. And also, thinking about it, it actually makes sense to have a high priority on the save post action because god knows what plugins are being used with mine and it makes sense to have a high priority because you would always want mpd to run last. I’ll bump up this number in the next release.

    As for your taxonomy issue. I’m sorry I can’t help. It won’t be related to you having a subdomain install. if you have created the taxonomies using a plugin such as CPUI then I could foresee this having issues over a multisite.

    Plugin Author MagicStick

    (@magicstick)

    Just released an update with priority changes included Nicolas. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ACF Pro fields not copying without native content’ is closed to new replies.