Support

Account

Home Forums Bug Reports Multiple Include Conflicts Reply To: Multiple Include Conflicts

  • Hi Elliot,

    I may not have been clear on this one. The issue is not with the core plugin, it’s with the addons, specifically the gallery and the options page.

    If you only include the base plugin all is well because it’s one big class and before the class you’ve added this check:

    if( !class_exists('acf') ):
    

    If I want to include the repeater field addon all is well again because I include the acf-repeater.php file which has this check:

    if( !function_exists('acf_register_repeater_field') ):
    

    However, the gallery and the options page addon does not have this check so it can not be included with a simple include.

    I hope that makes it a bit clearer, let me know if I’m just being thick 🙂

    Daniel