Support » Fixing WordPress » Register plus: accessing additional user info

  • Resolved lorenzo


    hello guys,

    i’ve been digging around for quite some time, but cannot find the answer to this problem.

    if i want to conditionally present content based on user information in a sidebar (from the user table) i found quite a lot of info (ie

    i’m currently using the Register Plus plugin and would like to use the variable fields from the plugin (ie ‘gender’) to present two versions of the content. does anyone know how can i retrieve this info from the current ID?

    an example of code for a sidebar (not even trying to do anything with the info yet!):

    <?php global $userdata;

    echo('Username: ' . $userdata->user_login . "\n");
    echo('User level: ' . $userdata->user_level . "\n");
    echo('User ID: ' . $userdata->ID . "\n");

    echo('sex: ' . $userdata->??? . "\n");


    i hope that somebody has suggestions, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • This thread is exactly what you’re looking for.

    thanks! the title of the other post was quite deceiving and i missed…
    much appreciated.

    i had high hopes for this tip, however the original call doesn’t seem to work for me.

    I tried the very basic stuff in this format as suggested (note that i tried both in a page and in the sidebar):

    if( get_user_option($option_name, $gender) ):
       echo get_user_option($option_name, $gender);

    the $gender variable is the name exactly as it was set in the RegisterPlus plugin.

    i also had a look at the get_user_option() function in the codex, but the page is actually blank! did anything change in the new 2.6 version (there are changes with user authentication, so i’m assuming there might be others)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Register plus: accessing additional user info’ is closed to new replies.