Options Framework
[resolved] Options not saving (5 posts)

  1. alex27
    Posted 3 years ago #


    I included Options Framework in my free theme - Gamepress
    Some users reported to me, that they are unable to save the options - after save everythig stays the way it was.
    I can't recreate this problem on either of my two test installations, for me everything works just fine. What could be the reason for this behaviour?


  2. alex27
    Posted 3 years ago #

    Ok, I managed to recreate the situation on one of the servers. It seems taht options are saved just fine (I checked directly in database). But when I call of_get_option() function for a specific option, it returns false.

  3. alex27
    Posted 3 years ago #

    I solved my own problem :) It turns out I changed option name from 'optionsframework' to 'gamepress' in options.php. Still I don't understand why it worked on some websites...

    Anyway, thanks for this great plugin!

  4. Devin Price
    Plugin Author

    Posted 3 years ago #

    The "optionsframework" option name is used by the Options Framework to keep track of which option names it has saved options to (if that makes any sense). So I definitely think it's a good idea you explicitly set it as your theme name.

  5. alex27
    Posted 3 years ago #

    Yes, but in addition to that some changes would have to be made to of_get_option function. I didn't want to do that in case I wanted to update framework in the future, because I would also have to remember to change this function again...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Options Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic