I am not positive how to do what you want. But I have been using this framework which is very similar to what you have above but is much easier to use
http://aquagraphite.com/2011/11/smof-documentation/
setting up options is really easy and it is supported through github. There is a place to ask these exact kind of questions. That and the framework has a lot of examples in it that you can copy and paste to get your admin area up and running. I just commented out all the example options so that I could reference them when I wanted to create one of them.
As for your answer. I don’t know how to do you but you could try some things like this
"choices" => get_categories( );
Related Posts:
- How to store widget fields data as an array?
- How To Add New Option Types To Option Tree?
- Modular theme settings
- How does WordPress decide what template to use as frontpage
- get_option function
- Override Current Theme Setting in wp_config.php
- Why might $input (Settings API) be coming through empty?
- Multiple Custom_Background, is it possible?
- Static Front Page problem
- two tinyMCE editors in the same page
- Is there any need to use both wp_reset_postdata and wp_reset_query together?
- Cannot update WordPress General Settings Site Title and Tagline
- How to upload images using Settings API
- Theme settings keep getting reset/erased
- Where should I update_options in a theme?
- How can I display/hide certain content based on a Theme Option field?
- How can I make my options in an array and store theme in WP options one DB row?
- How to Call pages from a Options Panel
- Efficiency of wp_options vs a new table
- How to set wp_options in functions.php for removeing the Default Front Page
- Override plugin option by with a custom theme
- Custom Post Type Query issue
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- not getting API setting saved confirmation message after update on option page
- Update Specific Key Value in Complex `wp_options` object
- How to remove permalinks links presents in each page of my site?
- Tabbed theme options query about add_settings_section callback function
- How to get a random single category name in get_posts()?
- Unable to delete option
- Theme Option’s Save Button is not working
- Querying by post category slug with core/query block markup
- Do I actually need to link my theme’s style.css in the theme files
- Adding a div to wrap widget content after the widget title
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- How to remove “prev, next, shortlink” from wp_head()?
- How to add a 2nd “featured image” to a post?
- What is the difference between WP: template_directory vs TEMPLATEPATH
- Adding widgets programatically: how to avoid collisions?
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- how to pull wordpress post comments to a external page
- Enqueued Stylesheets Effecting Admin Styles
- How to change the customizer´s sidebar width?
- How i can get widgets areas working in customizer?
- Theme development question regarding layouts
- Using wp_tag_cloud(‘format=array’) to print tag names without links?
- Link to a .po file in a child theme
- Alias to theme folder for local development
- My Admin bar covers my sticky navbar [closed]
- Responsive embed for the video shortcode
- Access theme options in templates
- How to show post from category select
- How to create a multiple choice radio group for a single theme option
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Move default page templates to sub directory
- How to upload/update theme from local – bitbucket – shared hosting?
- Migrated WordPress site renders Chinese
- How to specify the “Main Sidebar” for a theme
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How do you use WordPress for a website that’s not in a blog format?
- How to develop a menu like wwe.com?
- Add tags to pages
- Why set a second parameter in the translate function?
- How to escape multiple attribute at once in WordPress?
- Replace site title with logo when logo is uploaded in customizer using
- Review site using WordPress
- How to create query to get top 3 sticky/latest posts
- Fatal error: Class ‘ZipArchive’ not found
- Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”
- Running a function on post update with new post meta
- Check if( selected() )
- Modify available templates (in dropdown)
- Change WordPress Resource URL
- Adding content inside the anchor tags within WordPress main nav
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Theme calling page.php instead of home.php
- Open portfolio image in light box
- Let visitors show/hide a type of content
- style variations hurt the editing performance
- how to create/register menu items that can be added to menus later
- No templates for condition page.php Elementor
- White screen of death on index.php page 3 and above?
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- Providing updates to your WordPress theme
- One-Page WordPress Template
- double page title [duplicate]
- TinyMCE strips content while pasting. Possibly a bug
- add_theme_page is not working
- How to check if a certain theme option settings has already been set
- All post ids are the same after this query but rewind_posts() does not seem to work here?
- How can I tell WP which file to load by default in Appearance > Editor?
- while loop to be continue in next section
- Extracting Distance from FacetWP Proximity Function to Display in WordPress Template
- Theme now uses require.js and enqueue script no longer works
- Fatal error: Call to undefined function the_posts_navigation()
- Return the_content() with custom div class for a subset of posts
- Smooth Scrolling Animation of Image Between Two Containers (Elementor) Using JavaScript and GSAP
- WP Update Messages get cut off during Theme update