WordPress.org

Ready to get started?Download WordPress

Forums

Using Settings API, setting not being saved to database (1 post)

  1. datdesignguy
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic