Using the settings API
-
I’m trying to create a settings page for my theme using the settings API.
For learning I am applying it to the twentyten.
I’ve created an “options” folder in the theme folder and have added an options.php which I include from functions.php.I have the options page working and I generate the fields by using php to generate the html from an array of all my options fields.
It all works great but when I click save it just takes me to a page of all the possible wordpress options on one page and does not seem to save my options.
I’ve put my code in the pastebin. If someone could tell me if I’m missing something that’ll be great.
http://pastebin.com/vp9GjURa
sorry it’s quite long but I’m hoping skilled coders can figure it out.
The topic ‘Using the settings API’ is closed to new replies.