I am working on my wordpress theme and here is the code in a php file that gives a user a field to enter his website:
<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" id="url" value="<? php echo esc_url( $current_user->user_url ); ?>" maxlength="100" />
</div>
Here is what the form looks like:
Then, I created a duplicate field in Mysql as shown in the picture. Also, this is what the php file looks like now:
Issue: I am able to update url2 in database and that value gets filled up in the front end user profile but when i try to populate website2 field from the front end, the value is not being stored. The value field gets empty as soon as i refresh and sql field is blank as well.
What am i missing?
Aucun commentaire:
Enregistrer un commentaire