take a look at https://tommcfarlin.com/multiple-sections-on-wordpress-options-pages/
You can…
add_settings_section("owlish_license", "SECTION NAME", null, "theme-options");
add_settings_section("owlish_settings_group", "SECTION NAME 2", null, "theme-options");
add_settings_field("owlish_display_notes", "Display Notes", "callback1", "theme-options", "owlish_license");
register_setting('owlish_settings_all','owlish_display_notes');
add_settings_field("owlish_display_notes2", "Display Notes 2", "callback2", "theme-options", "owlish_settings_group");
register_setting('owlish_settings_all','owlish_display_notes2');
after you can use this wrapper on page
settings_fields("owlish_settings_all");
do_settings_sections("theme-options");
Have a nice day.
Related Posts:
- How to pass arguments from add_settings_field() to the callback function?
- How to pass variable to add_settings_section() callback?
- Difference between Option_Group and Option_Name in Register_Settings
- Settings API – creating reusable form elements?
- Settings API – changing add_settings_field() output?
- register_setting() vs add_option()
- Settings API – save an array of options as one setting (array_push?)
- Setting ‘autoload’ to ‘no’ with Settings API
- How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
- Serialized settings in rest api
- Can’t output do_settings_sections . Can’t understand why
- Settings API – how to update multiple options manually?
- Single callback with multiple setting fields
- Settings API – how to update options manually?
- how can I detect that option value has changed?
- How to display some settings for super admin user only using Settings API
- Is there a limit to the number of options you can store in one settings field of wp_options?
- Settings API get_option best practices
- Custom theme options Radio inputs not saving
- Settings API: Change position of custom setting field
- Tab from Settings API resetting all options with INSERT INTO [closed]
- Getting settings saved two times in settings page with tab
- get_option array value defaults and best practices
- The Settings API – What is the purpose of default value in register_setting?
- settings_fields doesn’t appear to be running
- Settings API – Separating PHP and HTML
- Settings API validation callback
- How to save custom settings api fields with custom section fuction
- How to retrieve the options from this options page?
- Add description to custom plugin setting
- Settings API and ‘type’ => ‘font’
- ‘delete_option()’ only deleting the value, not the key/value pair
- How to add a Reset to Defaults button with Settings API?
- Retrieve my custom settings in the settings/ API endpoint
- Is it possible to have a global parameter page which allows to configure other plugins in the same place?
- Multiple checkbox doesn’t work in wordpress settings api
- Is there a standard technique or API for getting the site header image?
- Help to create the best plugin settings!
- How to save Checkbox-Options in Plugin Options Page
- Problem with checkbox in Settings API
- Options saved and called in wrong order
- User specific settings, limited by role
- Access saved Options / Settings
- Dynamically Update Key in Associative Array When Saving Settings
- Incorporating the Settings API in WordPress Themes – by Chip Bennet
- How to add options for Pages?
- options validator input is false?
- Best place to store company address
- Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]
- change backend header options
- how to update serialized options programatically?
- What are the advantages to the Settings API?
- Set WordPress settings programmatically
- How to display an admin notice after updating plugin settings?
- Submenu pages delete settings from options array when saved
- get_option() from another wordpress site
- Custom plugin settings: clicking “save changes” does not display success message
- Add Settings to Custom Post Type
- Save Theme Options (options.php) From The Frontend
- checkbox with get_option not working
- Any way to partition wp_options?
- How do I add a value to a wp_options option that is an array?
- Performance of several get_option() calls
- wp_user_roles and Advanced Manipulation
- Can’t save options
- How to get bool with `get_option()` when already registered setting with type `boolean`
- How to cache posts based on $_GET? Option name is too long? Options / transients
- update a value in wp_options [closed]
- Remove Internal Style Sheet if no Value Provided?
- Insufficient permissions to save options
- Implementing action correctly
- Show admin notice on incorrect value on form field
- options-general.php page displays different sitename, home compared to wp_options table
- Cannot save using register_setting
- Testing for addon plugin activated
- update a value in wordpress wp_options
- problem with get_option in dashboard
- Custom options in plugin, register_settings not working as no options.php?
- Google fonts dropdown in Options Framework
- How do I retrieve multiple values from a multidimensional array in wp_options?
- Updating just one option with update_option
- Upload file on pre_update_option_{option_name}
- Update WP option by plugin
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- WP Page Options Array
- Theme settings Page: Settings Api vs Update_Options
- Accept code input into Options Framework
- [Multisite]How can I update custom blog option?
- How can I clear memcached WordPress site options by hand?
- Autopopulate a value
- Save Plugin Options as Array
- Move website from root to sub
- Is saving data to WordPress options as array bad thing to do?
- centralized alternative for get_option: get_site_option, get_network_option or get_site_meta?
- Editing a loaded WordPress option without updating the database
- add_settings_error on validating plugin options API
- Custom setting field value not working inside add_action init hook
- How do I create settings only used by my theme? [closed]
- Move one option value into another option
- how can i add_option as array from a form with just a text input