Home › Forums › Add-ons › Options Page › Get all fields from option page › Reply To: Get all fields from option page
There isn’t a way to load all of the options from a single options page in a single load.
Options pages have the “autoload” setting. Using this means that all of the options are loaded when WP loads in a single query reducing the queries needed.
Another option is to set the “post_id” option for the options pages to an ID of a “post”. This would let you use get_fields()
to get all the field for that specific options page because the values are no longer stored in options but in postmeta. Instead of using “options” as the post ID to get values you would use your custom post ID.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.