Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello radiok, I’ve got a problem when I try to show some custom fields on a page, that acts as a summary of the information of the current user.

    In my page I’m trying to use:

    global $current_user;
    $current_user = wp_get_current_user();
    $user_info = get_userdata($current_user->ID);
    
          echo('Username: ' . $user_info->user_login . "<br/>");
          echo('User level: ' . $user_info->user_level . "<br/>");
          echo('User ID: ' . $user_info->ID . "<br/>");
          echo('Provincia: ' . $user_info->provincia. "<br/>");
    ?>

    Where “provincia” is one of the custom fields I’ve added inside RPR.
    Unfortunately nothing is showing next to “Provincia:” in my page.

    Any suggestion?

    Thanks

Viewing 1 replies (of 1 total)