• 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)
  • Apparently the codex is wrong (according to this thread). The do_settings thing is wrong as described in the options page.

    I’m trying to figure it out myself, and I’m super annoyed that nobody has corrected the codec, and that all of the people asking questions on the forums are being ignored. These wordpress forums really suck no one answers you and then they close the thread. I’d try at Stack Overflow, they’ve got a better system.

    Moderator bcworkz

    (@bcworkz)

    do_settings() is no longer referenced in the above mentioned Codex page. Everybody implementing option settings should start by reviewing Settings API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin field types become hidden?’ is closed to new replies.