Plugin field types become hidden?
-
Im trying to add some fields to my plugin page, but the fields become hidden on the admin side even though they say text or submit in the code.
<form method="post" action="bowling-plus.php"> <?php settings_fields( 'bowling-settings-group' ); ?> <?php do_settings( 'bowling-settings-group' ); ?> <table class="form-table"> <tr valign="top"> <th scope="row">New Option Name</th> <td><input type="text" name="new_option_name" value="<?php echo get_option('new_option_name'); ?>" /></td> </tr>
And then when viewing the source on the admin plugin page it will be like this
<form method="post" action="bowling-plus.php"> <?php settings_fields( 'bowling-settings-group' ); ?> <?php do_settings( 'bowling-settings-group' ); ?> <table class="form-table"> <tr valign="top"> <th scope="row">New Option Name</th> <td><input type="hidden" name="option_page" value="bowling-setings-group" /></td> </tr>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin field types become hidden?’ is closed to new replies.