Support

Account

Home Forums ACF PRO Gallery field is returning empty array if not logged in

Helping

Gallery field is returning empty array if not logged in

  • Hello,

    I’m trying to retrieve values of a simple gallery field, but it works only if I’m logged in with one of the admin accounts. Otherwise it returns an empty array.

    array (size=0)
    empty

    This is very difficult to replicate, because once logged in, then it acts normally even if I clear browser cache.

    Is it a bug? Or some situation that I’m not understanding?

    Thanks

  • I can’t seem to reproduce this.

    What version of ACF are you using.

    Can you post the code your using to get the values of the gallery field?

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

The topic ‘Gallery field is returning empty array if not logged in’ is closed to new replies.