title: Issue with Wordpress Adding extra user profile fields
body: <p>I am having an issue with adding custom fields to the wordpress user profile and having the inputted fields show on the front of the site. Using the below tutorial I thought I had it working, however noticed that actually it only works for ONE user, then all of the others don't work, this is what is confusing me as I am used to things either working, or not working, whereas this works for the first user I tried it for, but no others.</p>
  
  <p>I have looked high and low trying different things to no avail. </p>
  
  <p>My purpose for this is to allow multiple wordpress users to add their Google+ profile to the wordpress head on posts BY that specific author with the rel attribute. </p>
  
  <p>Here is the tutorial I have used</p>
  
  <p><a href="http://bavotasan.com/2009/adding-extra-fields-to-the-wordpress-user-profile/" rel="nofollow noreferrer">http://bavotasan.com/2009/adding-extra-fields-to-the-wordpress-user-profile/</a></p>
  
  <p>Here is the code I am using for the function</p>
  
  <p>1 - This adds the field to the user profile</p>
  
  <pre><code>/* Add Additional Fields to Author Profile */
  
  add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
  add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
  
  function my_show_extra_profile_fields( $user ) { ?&gt;
  
      &lt;h3&gt;Extra profile information&lt;/h3&gt;
  
      &lt;table class="form-table"&gt;
  
          &lt;tr&gt;
              &lt;th&gt;&lt;label for="u-profs"&gt;Profile Info&lt;/label&gt;&lt;/th&gt;
  
              &lt;td&gt;
                  &lt;input type="text" name="u-profs" id="u-profs" value="&lt;?php echo esc_attr( get_the_author_meta( 'u-profs', $user-&gt;ID ) ); ?&gt;" class="regular-text" /&gt;&lt;br /&gt;
                  &lt;span class="description"&gt;Enter Your Profile Info.&lt;/span&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;input type="text" name="u-profs2" id="u-profs2" value="&lt;?php echo esc_attr( get_the_author_meta( 'u-profs2', $user-&gt;ID ) ); ?&gt;" class="regular-text" /&gt;&lt;br /&gt;
                  &lt;span class="description"&gt;Enter Your Google+ Url.&lt;/span&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
      &lt;/table&gt;
  &lt;?php }
  
  add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
  add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
  
  foreach($user_ids as $user_id){
      update_user_meta( $user_id, 'u-profs2', $_POST['u-profs2'] );
  }
  
  function my_save_extra_profile_fields( $user_id ) {
  
      if ( !current_user_can( 'edit_user', $user_id ) )
          return false;
  
      /* Copy and paste this line for additional fields. Make sure to change 'u-profs' to the field ID. */
      update_user_meta( $user_id, 'u-profs', $_POST['u-profs'] );
      update_user_meta( $user_id, 'u-profs2', $_POST['u-profs2'] );
  }
  </code></pre>
  
  <p>2 - This gets the field content and adds it to the wp_head of wordpress</p>
  
  <pre><code>    /* Google Rel Author */
  
  function google_rel_author_in_document_head() {
  echo '&lt;link rel="author" href="' . get_the_author_meta('u-profs2') . '"/&gt;';
  }
  add_action('wp_head', 'google_rel_author_in_document_head',99);
  </code></pre>
  
  <p>This link on StackOverflow seems to be a similar problem but is unresolved...</p>
  
  <p><a href="https://stackoverflow.com/questions/4546768/multiple-update-user-meta-in-wordpress">Multiple update_user_meta in Wordpress</a></p>