<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding and using custom user profile fields</title>
	<atom:link href="http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Wed, 23 May 2012 07:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tiffany</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1606320</link>
		<dc:creator>Tiffany</dc:creator>
		<pubDate>Tue, 15 May 2012 23:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1606320</guid>
		<description>&lt;a href=&quot;http://jsfiddle.net/e4GaS/&quot; rel=&quot;nofollow&quot;&gt;This is a solution that borrowed from your checkboxes and adapted them to radio buttons&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://jsfiddle.net/e4GaS/" rel="nofollow">This is a solution that borrowed from your checkboxes and adapted them to radio buttons</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiffany</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1606305</link>
		<dc:creator>Tiffany</dc:creator>
		<pubDate>Tue, 15 May 2012 23:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1606305</guid>
		<description>This is harrowing from Adam&#039;s checkbox solution

	Checkbox Test
	
&lt;pre&gt;&lt;code&gt;ID ); ?&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;administration&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;business_services&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;educational_services&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;human_resources&quot;  /&gt;
		Seeing if this works...
	
 


	update_usermeta( $user_id, &#039;division&#039;, $_POST[&#039;division&#039;] );&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is harrowing from Adam&#8217;s checkbox solution</p>
<p>	Checkbox Test</p>
<pre><code>ID ); ?&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;administration&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;business_services&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;educational_services&quot;  /&gt;
		&lt;input TYPE=&quot;radio&quot; name=&quot;division&quot; value=&quot;human_resources&quot;  /&gt;
		Seeing if this works...

	update_usermeta( $user_id, 'division', $_POST['division'] );</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1433099</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 01 May 2012 13:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1433099</guid>
		<description>Figured it out - a css issue.  I removed &#039;class=&quot;twitter clear&quot;&#039; and works great!</description>
		<content:encoded><![CDATA[<p>Figured it out &#8211; a css issue.  I removed &#8216;class=&#8221;twitter clear&#8221;&#8216; and works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1432934</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 01 May 2012 13:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1432934</guid>
		<description>I followed Justin&#039;s instructions exactly and get some author info displayed with posts, including author&#039;s username, avatar, and biographical information, but no Twitter username.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>I followed Justin&#8217;s instructions exactly and get some author info displayed with posts, including author&#8217;s username, avatar, and biographical information, but no Twitter username.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monika</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1195872</link>
		<dc:creator>Monika</dc:creator>
		<pubDate>Mon, 16 Apr 2012 12:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1195872</guid>
		<description>yes it works like a charme, but there are some deprecated functions this days

http://codex.wordpress.org/Function_Reference/update_usermeta</description>
		<content:encoded><![CDATA[<p>yes it works like a charme, but there are some deprecated functions this days</p>
<p><a href="http://codex.wordpress.org/Function_Reference/update_usermeta" rel="nofollow">http://codex.wordpress.org/Function_Reference/update_usermeta</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew w</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1151523</link>
		<dc:creator>matthew w</dc:creator>
		<pubDate>Fri, 13 Apr 2012 01:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1151523</guid>
		<description>2.5 years old, and the code still works like a charm. thanks! justin is a real life saver.</description>
		<content:encoded><![CDATA[<p>2.5 years old, and the code still works like a charm. thanks! justin is a real life saver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Steiner</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-1137753</link>
		<dc:creator>Rob Steiner</dc:creator>
		<pubDate>Thu, 12 Apr 2012 00:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-1137753</guid>
		<description>No need to c&amp;p each field:

&lt;pre&gt;&lt;code&gt;$v)update_usermeta( $user_id, $k, $v );&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>No need to c&amp;p each field:</p>
<pre><code>$v)update_usermeta( $user_id, $k, $v );</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: brasofilo</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-842660</link>
		<dc:creator>brasofilo</dc:creator>
		<pubDate>Fri, 16 Mar 2012 01:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-842660</guid>
		<description>using this code (and creating the respective files) you can fully customize CSS and jQuery of the Profile page:

&lt;pre&gt;&lt;code&gt;add_action( &#039;admin_print_scripts-profile.php&#039;, &#039;custom_profile_style&#039;, 0 );
add_action( &#039;admin_print_scripts-user-edit.php&#039;, &#039;custom_profile_style&#039; );
function custom_profile_style() {
	wp_register_style( &#039;custom_profile&#039;, get_stylesheet_directory_uri() . &#039;/css/profile.css&#039; );
	wp_enqueue_style( &#039;custom_profile&#039; );
	wp_register_script( &#039;custom_profile_js&#039;, get_stylesheet_directory_uri() . &#039;/js/profile.js&#039; );
	wp_enqueue_script( &#039;custom_profile_js&#039; );
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>using this code (and creating the respective files) you can fully customize CSS and jQuery of the Profile page:</p>
<pre><code>add_action( 'admin_print_scripts-profile.php', 'custom_profile_style', 0 );
add_action( 'admin_print_scripts-user-edit.php', 'custom_profile_style' );
function custom_profile_style() {
	wp_register_style( 'custom_profile', get_stylesheet_directory_uri() . '/css/profile.css' );
	wp_enqueue_style( 'custom_profile' );
	wp_register_script( 'custom_profile_js', get_stylesheet_directory_uri() . '/js/profile.js' );
	wp_enqueue_script( 'custom_profile_js' );
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-828598</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Wed, 14 Mar 2012 21:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-828598</guid>
		<description>I did exactly as Justin Tadlock told me to do in his tutorial. The field can be displayed. But it can&#039;t be saved. Why? The code I put in the file functions.php is as follow:

&lt;pre&gt;&lt;code&gt;add_action( &#039;show_user_profile&#039;, &#039;my_show_extra_profile_fields&#039; );
add_action( &#039;edit_user_profile&#039;, &#039;my_show_extra_profile_fields&#039; );
add_action( &#039;personal_options_update&#039;, &#039;my_save_extra_profile_fields&#039; );
add_action( &#039;edit_user_profile_update&#039;, &#039;my_save_extra_profile_fields&#039; );

function my_save_extra_profile_fields( $user_id ) {

if ( !current_user_can( &#039;edit_user&#039;, $user_id ) )
return false;

/* Copy and paste this line for additional fields. Make sure to change &#039;twitter&#039; to the field ID. */
update_usermeta( $user_id, &#039;usermemo&#039;, $_POST[&#039;usermemo&#039;] );
}

function my_show_extra_profile_fields( $user ) { ?&gt;

Extra profile information

usermemo; // textarea_escaped ?&gt;

&lt;?php }&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I did exactly as Justin Tadlock told me to do in his tutorial. The field can be displayed. But it can&#8217;t be saved. Why? The code I put in the file functions.php is as follow:</p>
<pre><code>add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );

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 'twitter' to the field ID. */
update_usermeta( $user_id, 'usermemo', $_POST['usermemo'] );
}

function my_show_extra_profile_fields( $user ) { ?&gt;

Extra profile information

usermemo; // textarea_escaped ?&gt;

&lt;?php }</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: GB</title>
		<link>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields#comment-663623</link>
		<dc:creator>GB</dc:creator>
		<pubDate>Tue, 28 Feb 2012 12:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1796#comment-663623</guid>
		<description>This is exactly what I&#039;m looking for, thanks!  I have modified it slightly so that the input field is a custom textarea field instead.  It works, given that the data that I save in the user profile shows up on my website. However, once the data is saved in the user profile, what has been entered is no longer visible in the textarea box itself in the WP user profile page.  

Here is my code, any help truly appreciated, thanks!

&lt;pre&gt;&lt;code&gt;/* EXTRA USER FIELDS FUNCTIONS -BEGIN */
/* Adding custom user field */
add_action( &#039;show_user_profile&#039;, &#039;my_show_extra_profile_fields&#039; );
add_action( &#039;edit_user_profile&#039;, &#039;my_show_extra_profile_fields&#039; );
function my_show_extra_profile_fields( $user ) { ?&gt;
	Extra profile information
		
			By‌line credit
			
				&lt;textarea name=&quot;byline&quot; style=&quot;width: 500px; height: 200px;&quot; id=&quot;byline&quot; value=&quot;ID ) ); ?&gt;&quot; class=&quot;regular-text&quot; /&gt;
				
				Please enter a two sentence description of yourself. This will go at the bottom of the emailed notes.
			
	&lt;?php
}
add_action( &#039;hybrid_singular-post_after_singular&#039;, &#039;my_author_box&#039;, 10 );&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is exactly what I&#8217;m looking for, thanks!  I have modified it slightly so that the input field is a custom textarea field instead.  It works, given that the data that I save in the user profile shows up on my website. However, once the data is saved in the user profile, what has been entered is no longer visible in the textarea box itself in the WP user profile page.  </p>
<p>Here is my code, any help truly appreciated, thanks!</p>
<pre><code>/* EXTRA USER FIELDS FUNCTIONS -BEGIN */
/* Adding custom user field */
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;
	Extra profile information

			By‌line credit

				&lt;textarea name=&quot;byline&quot; style=&quot;width: 500px; height: 200px;&quot; id=&quot;byline&quot; value=&quot;ID ) ); ?&gt;" class="regular-text" /&gt;

				Please enter a two sentence description of yourself. This will go at the bottom of the emailed notes.

	&lt;?php
}
add_action( &#039;hybrid_singular-post_after_singular&#039;, &#039;my_author_box&#039;, 10 );</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>

