WordPress.org

Support

Support » How-To and Troubleshooting » Using Settings API, setting not being saved to database

Using Settings API, setting not being saved to database

  • Hi guys,

    I could really use some help.

    I’m trying to save the value of a drop-down to the options table, but am having no luck. I think it has something to do with my variable names.

    I followed very very closely, Otto’s post on using the settings API, and I can’t seem to figure out why the value from my drop-down list ( should be a Page ID) is not getting saved to the database.

    here is my code: http://pastebin.com/hVjyj84d

    The option name IS being saved (just not the value), btw, but it’s being saved as first_time_url even though I thought I had registered it as first_login_options. I need it to be saved as an array because once I get this working I have to add the option to choose between a post, page, or other custom post type.

    Thanks in advance for your help!

  • The topic ‘Using Settings API, setting not being saved to database’ is closed to new replies.
Skip to toolbar