Support

Account

Home Forums Bug Reports Image File Type Return Value not working Reply To: Image File Type Return Value not working

  • When using get_field() or the_field() and the Image ID is returned instead of the expected return value, this is a sign that acf_add_local_field_group() was not run. Therefore ACF is pulling the raw value from the database but has no way to determine in which format you want it.

    To resolve the issue, ensure that acf_add_local_field_group() is run from the init hook, not one of the admin_* hooks.