Support » Fixing WordPress » Profile field dosnt show value

  • paffelek

    (@paffelek)


    Hi,

    I added custom field to my profile (im using theme my login plugin):

    <tr>
    			<th><label for="telefon">Telefon</label></th>
    			<td><input type="text" name="telefon" id="telefon" value="<?php echo esc_attr( $profileuser->user_telefon ); ?>" class="regular-text code" /></td>
    		</tr>

    It updates database correctly (backend) but when I came back to profile page it doesnt show anything (frontend).

    How to fix it?

    regards,
    paf

Viewing 1 replies (of 1 total)
  • Thread Starter paffelek

    (@paffelek)

    I have this code in my functions.php:

    function modify_contact_methods($profile_fields) {

    // Add new fields
    $profile_fields[‘telefon’] = ‘Telefon’;

    return $profile_fields;
    }
    add_filter(‘user_contactmethods’, ‘modify_contact_methods’);

    update: it does work on default profile page, so problem is related to THEME MY LOGIN plugin – I posted my problem on their board.

Viewing 1 replies (of 1 total)
  • The topic ‘Profile field dosnt show value’ is closed to new replies.