Support

Account

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.