Want some honest advice? Work from a better code base..
Though, it’s not your fault, there are hundreds of blogs with variations of similar code, i’m not sure where it originated, but i see similar code “alot”…
If you can get by without the hand holding and just manage with a good code base, i’d suggest the following..
http://themeshaper.com/sample-theme-options/
It’s not the most fancy or advanced example, but the approach is sound, it only uses a single option to store all the values and also uses the settings api for handling options.
Related Posts:
- Best practices for a Style/CSS based theme options page?
- How do I create my own admin button and theme settings page?
- Moving WordPress.com theme and widget settings to self-hosted site?
- Multisite: setting theme and options when a new blog is created
- Copying theme from Localhost to Live does not copy all theme settings with it?
- Register theme customizer settings when theme activates [duplicate]
- How to mark an option as selected
- Add transparency to wordpress color picker?
- Working with an Array inside Your Theme Options Array – Multiple Values
- What’s the order of loading wordpress elements?
- loss of theme options while site deployment in production
- Theme settings default, strange behavior before first save
- How to find out if page_for_posts is showing (in order to style menu item)
- New custom theme option (text input) giving index error
- Full page (no WP admin menus and options) admin theme options
- How to dynamically change theme’s slogan from admin?
- Passing dynamic options from backend to frontend
- Problems to disable the comments for my statics pages
- WordPress setup one database with two different website?
- How to include stylesheet in custom admin using parent_slug
- Get data from Theme Options and use them into meta options field in custom post type
- What’s the easiest way of adding more options in the Theme Options of the twenty eleven theme?
- How to implement theme option to change bootstrap 4 container from .container to .container-fluid
- Can i add wordpress editor to my custom theme option? [closed]
- Theme Options Menu Item – Permission Issue
- Opinions and recommendations on the best barebones base theme [closed]
- Different template of products for specific category. WooCommerce
- what the best way to include images from the template’s images folder?
- WordPress 5 / Gutenberg – theme doesn’t have featured image option showing up
- How to refresh WordPress Customizer panel upon entering a value
- Set Featured Image for Archive templates
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- How do I change Twenty Nineteen’s primary color without using the color slider in the theme customizer?
- How to add the main style.css to my index.php?
- How to attach region identifier to a pretty url?
- Remove action within a class in a parent theme from the child theme
- How to get themes from wordpress.com per SVN? [closed]
- Edit raw HTML of the landing page
- How to move WordPress theme files into a subfolder without breaking the theme?
- remove rel=next on home page but not others
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- How do you create a custom WPTouch theme?
- Added a new template file to a theme – get Call to undefined function error
- Renaming the Twenty Fourteen WordPress theme
- Defining different theme for Blog posts page
- WordPress Theme for Video Showcase [closed]
- Add js into a theme [closed]
- How to know if user choose to show full post or excerpt?
- .htaccess edits
- Broken link to theme asset after restoring backup
- Create more than one section in Theme Customizer
- Is that worth it to find a designer for creating a WordPress theme for selling on ThemeForest? [closed]
- Howto keep header image when changing theme
- Get name of current page template in Gutenberg era
- Mobile issue – website isn’t properly detecting screen size [closed]
- Redux callback action
- translation does not work for ‘Home’
- Should I implement my own custom theme
- How to translate a string that contains a WordPress sitename
- How can I manually activate my previous theme without browser access to dashboard?
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Is that a malicious code?
- WordPress EduPress and businessbite Theme Installation Failed [closed]
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- Create Custom Attachment Template That is Processed from Plugin Folder?
- my blog crashes ie7?
- How would I got about calling a php file every time someone publishes a new post?
- Custom theme – pages in menu
- Setting Multiple Post Containers Across Homepage And Costumize Them
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme CSS missing completely
- How to implement this layout?
- WordPress customizer extremely slow, cant work in it
- Missing privacy policy checkbox on login page (using Enfold theme)
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Let custom text widget use the same font as the theme
- wordpress theme link url
- Work on theme files on a server & browser preview before installing it
- Route to custom file
- “Template is missing” install error on non-child theme
- wordpress template page Usage [duplicate]
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- how to use Easy Docs theme to write a book?
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- What type to upload image within theme options?
- Remove Google Fonts from parent theme within a child theme [closed]
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- Table of Contents in Left Navbar [closed]