I have a theme with around 500 custom options, their code looks like this:
<form method="post" action="options.php">
<?php wp_nonce_field('update-options'); ?>
<input type="text" " value="<?php echo get_option('option1'); ?>" />
<input type="text" " value="<?php echo get_option('option2'); ?>" />
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="option1,option2" />
<input type="submit" value="<?php _e('Save Changes') ?>" />
</form>
I guess they're all stored in wp_options table.
The point is, I'm unable to save this data, every time i export/import Wordpress settings these custom options values disappear, changing theme also wipes them out.
How to fix that?
wp_options
table aren't.