First, you really should be storing your options as an array in wp_options
. But should you choose not to, you really should change the names of your second and third options; “height” and “width” are entirely too generic, and almost assuredly will cause conflicts. You’re passing name="height"
and name="width"
, respectively, but I doubt that WordPress is associating “width” and “height” as options that belong to your Plugin.
So, assuming your store your options as plugin_plugin-slug_options
, which is an array:
<?php
$plugin_options = get_option( 'plugin_plugin-slug_options' );
?>
<tr><td>Number Of Videos:</td><td><input type="text" name="$plugin_options[vidNO]" value="<?php echo get_option('vidNO');?>" <?php echo get_option('vidNO'); ?> />
</td></tr>
<tr><td>Height:</td><td><input type="text" name="$plugin_options[height]" value="<?php echo get_option('height');?>" <?php echo get_option('height'); ?> />
</td></tr>
<tr><td>Width:</td><td><input type="text" name="$plugin_options[width]" value="<?php echo get_option('width');?>" <?php echo get_option('width'); ?> />
</td></tr>
But you really should consider using the Settings API, at least insofar as using register_setting()
to register your options array, and settings_fields()
to do the heavy lifting in your settings form.