Support

Account

Home Forums General Issues File field return id instead of array

Solved

File field return id instead of array

  • Hi

    Seems that depending of context, ACF file return ID instead of array even if return array is set in field option.

    Tested with get_field('fieldname') and the_field('fieldname') with same result

    Any help would be appreciated
    Greg

  • In almost all cases when you are seeing this happen there is a pre_get_posts filter somewhere that is interfering with ACF queries. This could be in your theme or in another plugin.

    You need to look for these filter actions and disable them to test and find the one that’s causing the issue.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.