I want to add a third column consisting of an input textfield using the Settings API. Is this possible?
function print_custom_field()
{
$value = get_option( 'my_first_field', '' );
$value_second = get_option( 'my_second_field', '' );
echo '<input type="text" id="my_first_field" name="my_first_field" value="' . $value . '" />';
echo '<input type="text" id="my_second_field" name="my_second_field" value="' . $value_second . '" />';
}
add_filter('admin_init', 'register_fields');
EDIT: I tried this code and Wordpress doesn't save the values of the second input field. Only the value of the first input field gets saved. How can I show another text input in the same row?