Steve you’re doing it wrong.
WordPress provides Settings API that should be used for settings pages. If you aren’t familiar with Settings API see great tutorial by Chip Bennett – Incorporating the Settings API in WordPress Themes.
Related Posts:
- Turn get_posts as string into an array for use in theme admin options
- How to get an array of menu items from the toolbar?
- How to save Uploaded image in custom option panel?
- How to add an export function to a custom Option Theme Page
- If function exists, and array is met, echo function?
- Theme options WP Editor
- Defining a global array in functions.php?
- How to manage arrays from custom functions stored in functions.php?
- get_post_type() in in_array doesn’t work for some reason
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Image rotation fails to regenerate custom sized thumbnail
- Sorting table function default
- Generating dynamic css into custom file [closed]
- Option Tree integration of Custom CSS
- Get array of metakey in all posts
- How to echo the value of an array element using a function via a shortcode
- issue with if/elseif in_array inside foreach loop display only one post
- Show some menu sub items as dropdown under a menu item
- $_Get and &_REQUEST Index Undefined on Functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- Adding theme option values as custom body class
- Output comment_author in array
- How to add or delete default value theme options while activate and deactivate theme
- Override a Post’s URL with Advanced Custom Fields Function
- How to create an array if ’empty’?
- Pass an argument into a function to extract from array
- Combine multiple menus using the filter wp_nav_menu_items
- Featured image on archive page based on post type
- How can I stop the hook from breaking the login/logout function?
- Code executes outside of Loop while same code gives ‘Uninitialized string offset’ notice inside a while loop
- How to assign results to variables?
- Get title from IDs in a string
- Adding a meta box fields to child theme options page
- Dynamically generated Navigation Diagram using Custom Fields
- theme options not saving
- Using array page name together with page id to deregister script
- Echo custom field value in shortcode function
- Hiding Google Analytics code based on theme options
- get_footer can’t find any variables set in functions.php
- trouble with passing class method data to outside function
- Explode Array from Repeatable Custom Field
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- Automatically delete posts that aren’t in an array
- Which method is more correct for removing WooCommerce Extensions menu item?
- Printing medium sized image
- Copying a widget class to functions.php results on a blank page
- Show number of sold products but be first for less than 2
- Show users last read posts for each user?
- Get shortcode attribute value to another function
- method to fetch entire tag list on archive.php
- Pagination won’t work on custom page
- Filter posts on new page
- MCAPI.class.php showing some error
- Sticky – Featured Image
- How to retrieve image IDs from shortcode content?
- Remove post from latest posts after a month only with certain tag
- save_post doesn’t correctly process function call with php class
- Form output outside of container
- delete_user_meta for user in spesific group
- Display list of pages that contain a certain string within the slug
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- I need to completely ‘wp_dequeue_script’; what’s the best way?
- True email confirmation for registration (keeping unvalidated users from user table)
- $content is empty while using DOMDocument
- Redirect logged user depending on user role if he tries to access home page?
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- Code I am placing in the wp_footer is going outside the entire HTML frame!
- Placing CSS/ JS into the header or footer (inline) – trying to apply to several templates
- Hide disclaimer from summary excerpts
- Custom download page
- Load scripts into an AJAX div
- Load scripts into an AJAX div
- HowTo: Add wrapper to columns shortcode?
- restrict uploaded image size and fixed image display size
- Function not receiving string from shortcode
- I’m getting invalid taxonomy in init action
- Using a variable in name of dynamically-called helper function
- Fatal error: Call to undefined function. Underscore me
- Author Page User id in functions.php for non login user
- Is there any requirements to do socket programming with WordPress?
- What is best practices to move the following code into a function?
- Why am I losing image quality on my site?
- How to add widget in main menu
- Replace image attributes for lazyload plugin on image elements with specific class
- Correct way of Enqueue self hosted fonts in sass project
- function syntax is off,
- Taxonomy On Index Page
- Adding A New Widget to WordPress Disables the Existing Widgets
- Function image_send_to_editor returns emty title tag
- Including admin-options.php file in Child Themes
- Display posts using post ID’s in an array
- I see edit instead of read more
- WordPress hooks to call a function inside a construct
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- require_once() Causing categories and tag pages on dashboard to not refrsh
- How To Show Shortcodes In WordPress Custom Fields?
- WordPress undefined function error on using add_action() in functions.php
- Rewrite rules and the permalink
- Edit meta fields from within template
- How to create admin ajax function for my contact form