Not sure if this is the proper place for this, but I'll give it a shot anyway.
I'm adding some theme options to my HTML5Press theme.
Options it has that work:
1. Enable/Disable "back to top" floating button.
2. Featured Image size
3. Featured Posts Category
Now, there's an option that goes along with #3, it's "# Featured Posts to Show".
No matter what, I can't get that value to update in the database, it always stays at the default value. All the other options work fine.
I've looked at the code numerous times for an hour or more at a time, and can't figure out what the issue is.
The theme options page can be found here:
The problem resides in that file, that's the only file that deals with theme options, functions.php just checks which options are set and grabs the values for those options.
$html5press_num_featured_options is the array that stores the available choices for "# Featured Posts to Show". That array gets looped through and produces the select form field for choosing how many posts to show.
num_featured is the name of the option in the array of HTML5Press options that gets stored in the wordpress options table.
Can anyone shed any light as to why this one option never updates?