Results 1 to 1 of 1

Thread: How to delete Field : dispaly name,, from profiele page

  1. #1
    Thread Starter
    tjalling's Avatar
    Join Date
    Mar 2012
    Location
    Netherlands
    Posts
    154
    Thanks
    4
    Thanked 1 Time in 1 Post

    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) . '&nbsp;' . esc_attr($current_user->last_name);
    $public_display['display_lastfirst'] = esc_attr($current_user->last_name) . '&nbsp;' . 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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Samcy How to delete a Custom Field
    By g_esteves in forum Help Using ClassiPress
    Replies: 4
    Last Post: October 7th, 2014, 06:24 AM
  2. [SOLVED] How do I delete the "Phone Number" text field in the listing signup
    By nineetherpages in forum Vantage General Discussion (Legacy)
    Replies: 2
    Last Post: May 22nd, 2013, 09:46 AM
  3. Jomark How to delete banner/button on latest job page
    By facultyoc in forum Help Using JobRoller
    Replies: 1
    Last Post: April 10th, 2013, 10:40 AM
  4. [SOLVED] How to delete the square surrounding my photo in the Page?
    By richard168 in forum ClassiPress General Discussion
    Replies: 13
    Last Post: September 17th, 2012, 01:28 PM
  5. Delete the Page menu in the subfooter part
    By Rexxcom in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 29th, 2012, 11:21 AM