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!
© 2022 Advanced Custom Fields.