New field in the form "Edit Profile"
Hallo,
I'd like to add a new input field in the form "Edit Profile", namely in order to collect a second url.
For this reason, I copied the code regarding the field "Website" as follows:
<div class="row">
<div class="large-12 columns form-field">
<label><?php _e('Website', APP_TD) ?></label>
<input type="text" name="url" class="text regular-text required" id="url" value="<?php echo esc_url( $current_user->user_url ); ?>" maxlength="100" />
</div>
</div>
Then I replaced "url" by "url-two" as follows:
<div class="row">
<div class="large-12 columns form-field">
<label><?php _e('Website 2', APP_TD) ?></label>
<input type="text" name="url-two" class="text regular-text required" id="url-two" value="<?php echo esc_url( $current_user->user_url-two); ?>" maxlength="100" />
</div>
</div>
But no value was displayed in the new field after entering a second url und updating the profile.
Which other amendments are necessary?
Thank you in advance.