How to delete Field : dispaly name,, from profiele page
Hi,
Zo i deleted this fields from the tpl-profile.php file
Username
First name
Last name
Nickname
Display name
Nouw all the fields are gone besides the Display name field. This one shows up on top of the profile page. Realy strainge because i deleted it. Here is screen shot of my profile page
how to delete.png
If im not mistaking is that field i want to delete called display name in my tpl-profile.php file zo why dus it show up?
Here is a copie of the upper side of my tpl-profile.php file
<?php
/*
Template Name: User Profile
*/
$current_user = wp_get_current_user(); // grabs the user info and puts into vars
$display_user_name = cp_get_user_name();
?>
<div class="content">
<div class="content_botbg">
<div class="content_res">
<!-- left block -->
<div class="content_left">
<div class="shadowblock_out">
<div class="shadowblock">
<h1 class="single dotted"><?php printf( __( '%s\'s Profile', APP_TD ), esc_html( $display_user_name ) ); ?></h1>
<?php do_action( 'appthemes_notices' ); ?>
<form name="profile" id="your-profile" action="" method="post">
<?php wp_nonce_field( 'app-edit-profile' ); ?>
<input type="hidden" name="from" value="profile" />
<input type="hidden" name="checkuser_id" value="<?php echo $user_ID; ?>" />
<table class="form-table">
<tr>
<th><label for="user_login"><?php _e( 'Username:', APP_TD ); ?></label></th>
<td><input type="text" name="user_login" class="regular-text" id="user_login" value="<?php echo esc_attr( $current_user->user_login ); ?>" maxlength="100" disabled /></td>
</tr>
<?php
$public_display = array();
$public_display['display_displayname'] = esc_attr($current_user->display_name);
$public_display['display_nickname'] = esc_attr($current_user->nickname);
$public_display['display_username'] = esc_attr($current_user->user_login);
$public_display['display_firstname'] = esc_attr($current_user->first_name);
$public_display['display_firstlast'] = esc_attr($current_user->first_name) . ' ' . esc_attr($current_user->last_name);
$public_display['display_lastfirst'] = esc_attr($current_user->last_name) . ' ' . esc_attr($current_user->first_name);
$public_display = array_unique(array_filter(array_map('trim', $public_display)));
foreach($public_display as $id => $item) {
Who can help me get this sorted? Highly apriciated!