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?
- What WP folder can I use to write files to?
- Modular theme settings
- How to add Color Picker in Theme Options for the following?
- Setting multiple default background images?
- Best practice way to implement custom sections into a WordPress theme
- Best practice (forward compatibility) for theme options
- 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?
- 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
- WordPress Errors in generated by theme check plugin [closed]
- WordPress Theme customisation CSS
- Select front page and blog page in custom theme settings page
- Using the theme options to change background
- Theme Options page not showing up in admin menu
- How to hook CSS file according to theme selection in the customizer section
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Is there a way to activate different theme for specified users? [closed]
- Is there an action for save_menu and/or update_menu?
- Theme settings keep getting reset/erased
- Set multiple templates per post
- Creating Theme Options Page
- Location of theme options page menu icon
- WordPress add options to theme not displaying
- qTranslate with my own theme and settings
- Where should I update_options in a theme?
- How can I display/hide certain content based on a Theme Option field?
- Users table association with users_metadata table appears broken
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Using an if statement in the theme customizer page
- How to add “Template” option in page attributes panel?
- How to show custom meta_key in each li of menu
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Following Web Performance Optimization techniques to output static and dynamic css
- How to enqueue javascript for WP Customize options sidebar?
- How do i place same widgets multiple time by default on theme activation?
- Is it possible to save more than one image to an option?
- correct tags for validating input types
- Common single page template options
- How to support letting users add their OWN logo to a custom theme?
- Redirect to another page using contact form 7? [closed]
- Database Tables in WordPress Theme
- Change WordPress header color using customizer
- How to set wp_options in functions.php for removeing the Default Front Page
- How do I use a color from theme options?
- How can I change the theme of different posts using a plugin?
- How to Create custom xml file for demo content for custom theme?
- How to make javascript work on theme options page
- get_template_part() doesn’t work
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Consequences if using PHP include TEMPLATEPATH?
- WP_editor doesnt apply wpautop on single line content
- Copying the theme style files and images to duplicate the website but with a difference
- How do I merge 2 WordPress Themes?
- Valid SQL query not returning results
- How add built-in textarea in theme development?
- Let user to add input fields on theme option page
- 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
- Why my theme option not working?
- How to use multiple check-box values to work in a function and insert values in database
- In wordpress customizer div still showing even if I hid it with javascript
- WordPress Settings API Overrides My Previous Value
- Array for WordPress Avatar Size and Class
- 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
- how to call options on front end and add logo
- how to create export / import theme options in wordpress without plugin
- 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
- trying to figure out how to use more that one image upload in the same section in theme customizer
- 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
- Import/Export WordPress demo
- save array of objects with update_option