• Hello everybody,
    I’m writing a custom theme and I’m implementing a few settings inside an option page.
    I’m having quite a few problems with data validation because the data passed to the validation function doesn’t seem to update the option entry in the database.

    Here you’ll find the theme-options.php code included from the functions.php in my theme

    This is the options-cart.php file where you can find the actual form for the page.

    And here you have the options-register.php page, where the data validation is done. Here (I presume) is where the problem is, but I can’t seem to find what is wrong with this code..

    I really hope you can help me, if you need any more info, just ask!
    Thanks a lot in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you reviewed Otto’s and Chip’s excellent articles on the subject?

    Thread Starter danixland

    (@danixland)

    Hi esmi, yes I’ve read both tutorials and also ozh’s one, actually I started writing my settings page looking at chip bennet’s article as a reference.

    I think I’ve done everything correctly, but I know there’s something wrong or it should be working well, the fact is that I can’t find what is wrong..

    I probably need to look at it tomorrow with fresh eyes.. ??

    I tend to fall foul of this myself regularly – especially if I’ve decided to start changing function names. Do make sure that all of your function names (and parameters) match.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘theme options validation using the settings api doesn't work’ is closed to new replies.