Support

Account

Home Forums ACF PRO Conditionally Load .json files Reply To: Conditionally Load .json files

  • you have to set path[0] i guess
    your $paths[] = get_stylesheet_directory() . '/acf-json/truck';;
    just puts another array array element to $paths but ACF as i know uses just $paths[0]

    add unset($paths[0]) at first line of your function