studio icon indicating copy to clipboard operation
studio copied to clipboard

Weird issue with ACF options page

Open countfak opened this issue 5 months ago • 3 comments

Quick summary

Hi I noticed a strange issue going on with the ACF plugin, specifically when trying to access fields inside an options page. It basically returns nothing.

Steps to reproduce

Use the get_fields function to get all the fields inside an options page, you will see that fields are not retrieved correctly.

get_fields('options');

I was able to reproduce this by creating a new site, and also by importing an existing one.

What you expected to happen

The function should return an array with all the fields from the desired ACF options page. Here's the documentation: https://www.advancedcustomfields.com/resources/get_fields/

What actually happened

The function returns nothing.

Impact

One

Available workarounds?

No but the app is still usable

Platform

Mac Silicon

Logs or notes

No response

countfak avatar Sep 17 '24 07:09 countfak