It is trivial to store an array of options in WordPress — just pass an array to option functions. 🙂
The downside is that it will be stored in serialized form, which isn’t friendly for SQL queries. That matters more for other APIs, such as meta data, than options.
Converting is up to you, you will need to adjust your code to work with and store an array.
Related Posts:
- Efficiency of wp_options vs a new table
- How to store widget fields data as an array?
- How To Add New Option Types To Option Tree?
- get_option function
- How to set the default value of a option in a theme?
- How to deploy a new theme/theme options from staging to production site
- Cannot update WordPress General Settings Site Title and Tagline
- Change setting name in Customizer and keep the data
- For best DB performance should I serialize all theme options together or by type?
- not getting API setting saved confirmation message after update on option page
- Update Specific Key Value in Complex `wp_options` object
- Tabbed theme options query about add_settings_section callback function
- Theme Option’s Save Button is not working
- WordPress API Menu/Submenu Order
- What are the advantages and disadvantages of Option Tree over the Customization API?
- How do I add settings to the Background Options Page?
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- What WP folder can I use to write files to?
- WordPress Settings API error
- Add a dropdown to theme customizer
- Understanding wp_add_inline_style
- Add a new checkbox in theme options
- Modular theme settings
- How to add Color Picker in Theme Options for the following?
- Setting multiple default background images?
- How to export/import theme customizer settings?
- Best practice way to implement custom sections into a WordPress theme
- How does WordPress decide what template to use as frontpage
- Best practice (forward compatibility) for theme options
- Get category slug and display it on a query_post
- Override Current Theme Setting in wp_config.php
- Why might $input (Settings API) be coming through empty?
- Where is default wp_head() implemented?
- Add a preview to a WordPress Control Panel
- WordPress settings API error when checkbox unchecked
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Multiple Custom_Background, is it possible?
- What is the best way to export and import theme options?
- Static Front Page problem
- two tinyMCE editors in the same page
- esc_url not working within add_settings_field callback
- How to remove menus section from WordPress theme customizer
- Sample Theme Options page for Multisite – what to consider
- Customize Option Framework
- How To Display Value from Theme Options Field in Front End Template?
- How to remove permalinks links presents in each page of my site?
- Creating an advanced searchform based on select boxes
- help needed for suit designing tool
- Why my theme option not working?
- How to use multiple check-box values to work in a function and insert values in database
- Related Post Category Filter
- WordPress custom menu can’t show 3. level submenu
- Gallery functionality in custom theme
- In wordpress customizer div still showing even if I hid it with javascript
- Customizer API Multi Sections in single Panel
- WordPress Settings API Overrides My Previous Value
- Array for WordPress Avatar Size and Class
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- Unable to delete option
- using themename_the_custom_logo() in template-tags?
- Duplicate child theme incl. design changes
- I updated my own theme’s code and css
- Theme option page doesn’t save options
- How to customize the colors within a stylesheet using a WordPress setting
- Create settings field on button click
- how can I re-utilize and class on a child theme
- how to call options on front end and add logo
- how to create export / import theme options in wordpress without plugin
- Customizer_register theme options not saving
- Query wp_postmeta into an array based on post_id
- How can I include the js and css file of my custom theme dynamically in header.php
- Undefined index: custom_sidebars
- Create new sidebars trough admin post/page metabox
- Using Customizer value in an external PHP file inside a theme
- wpdb->insert adds too many rows
- “No Data Received” error in Chrome every time i try to update the theme functions file
- trying to figure out how to use more that one image upload in the same section in theme customizer
- Theme Options Doesn’t Work On WP Multisite
- WordPress two sidebar layout or theme
- Theme automatically inserting “more” tag on every post
- Custom widgets in theme option page
- wp_deregister_script was called incorrectly
- The content not wrapped in paragraph tags with get_page_by_title()
- Undefined index: debuging error for theme option template snippet
- How to Disable Color Options?
- Import/Export WordPress demo
- Turning WordPress Into full-featured website?
- Workflow of Collaboration on wordpress development [closed]
- Extracting Distance from FacetWP Proximity Function to Display in WordPress Template
- How to make admin theme option with image slide show?
- Theme.json: creating different sections of the color palette
- Website Developer has gone missing! How to gain full access of your code from a WordPress website?
- save array of objects with update_option
- Is it ok if I use this tag?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Remove nonindex meta tag
- TItle In Latest Post is not using H1 Tag [closed]
- Export WordPress theme with modifications for other site
- WordPress 6.4.2 – can’t load editor style css using ‘after_setup_theme’ or ‘admin_init’ actions