<?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 Custom User Meta to WordPress User Profiles</title>
	<atom:link href="http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/</link>
	<description>Daniel J. Quinn&#039;s journal of WordPress, electronic publishing, and general geek culture.</description>
	<lastBuildDate>Tue, 09 Mar 2010 18:14:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3246</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3246</guid>
		<description>Try to see if you can enclose the field in code that only displays if the currently logged in user has administrative privileges.</description>
		<content:encoded><![CDATA[<p>Try to see if you can enclose the field in code that only displays if the currently logged in user has administrative privileges.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3245</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3245</guid>
		<description>You may have to reach into the database to do that.</description>
		<content:encoded><![CDATA[<p>You may have to reach into the database to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radek</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3201</link>
		<dc:creator>Radek</dc:creator>
		<pubDate>Thu, 04 Feb 2010 01:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3201</guid>
		<description>Hi Daniel, thank you for the code. I was wondering if I can use your code or some of it to &quot;add new custom user meta field&quot; to all existing users and also to all new ones and then let &lt;code&gt;only admin&lt;/code&gt; to edit the field for every single user using dashboard. I&#039;ve been looking around and I cannot find any solution to that... Could you give me some hints?I do not even need to display that field anywhere.I need to used it in a condition.Let&#039;s say I want to display different ulr for users with that field == &#039;true&#039;.Thank you.Radek</description>
		<content:encoded><![CDATA[<p>Hi Daniel, thank you for the code. I was wondering if I can use your code or some of it to "add new custom user meta field" to all existing users and also to all new ones and then let <code>only admin</code> to edit the field for every single user using dashboard. I've been looking around and I cannot find any solution to that... Could you give me some hints?I do not even need to display that field anywhere.I need to used it in a condition.Let's say I want to display different ulr for users with that field == 'true'.Thank you.Radek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emi</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3181</link>
		<dc:creator>Emi</dc:creator>
		<pubDate>Wed, 27 Jan 2010 06:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3181</guid>
		<description>I am sorry I missed the code brackets....

&lt;code&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I am sorry I missed the code brackets....</p>
<p><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emi</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3180</link>
		<dc:creator>Emi</dc:creator>
		<pubDate>Wed, 27 Jan 2010 06:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3180</guid>
		<description>Thanks you so much for this plugin. It works beautifully.

However, one issue. I tired your radio button version and have registrators choose what &#039;gender&#039; they are. It works perfect on profile pages. Now I would like it to automatically show that on each comments. Comment section are only for registered people. I did.....



For some reason, if admin choose &quot;girl&quot; every single people&#039;s gender goes &quot;girl&quot;. I wonder if this is something to do with plugin conflicts. Thank you so much for all your help.</description>
		<content:encoded><![CDATA[<p>Thanks you so much for this plugin. It works beautifully.</p>
<p>However, one issue. I tired your radio button version and have registrators choose what 'gender' they are. It works perfect on profile pages. Now I would like it to automatically show that on each comments. Comment section are only for registered people. I did.....</p>
<p>For some reason, if admin choose "girl" every single people's gender goes "girl". I wonder if this is something to do with plugin conflicts. Thank you so much for all your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3121</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Fri, 08 Jan 2010 18:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3121</guid>
		<description>thanks, though it can be argued that being giving is also a character flaw. Yes to &quot;DQ,&quot; as well. Don&#039;t forget Dr. Quinn, medicine woman.

I note at the top of this tutorial that the new 2.9 functions are better for customizing the usermeta, but I haven&#039;t personally used them yet. I wonder if it&#039;s flexible enough to allow you to write out your own markup for the new fields? You look like you&#039;re ahead on that, so your guess is better than mine.</description>
		<content:encoded><![CDATA[<p>thanks, though it can be argued that being giving is also a character flaw. Yes to "DQ," as well. Don't forget Dr. Quinn, medicine woman.</p>
<p>I note at the top of this tutorial that the new 2.9 functions are better for customizing the usermeta, but I haven't personally used them yet. I wonder if it's flexible enough to allow you to write out your own markup for the new fields? You look like you're ahead on that, so your guess is better than mine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayson</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3120</link>
		<dc:creator>Jayson</dc:creator>
		<pubDate>Fri, 08 Jan 2010 18:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3120</guid>
		<description>You are truly giving.  I think you spent more time advising folks then writing the plugin itself!  A true definition of your character.  Ok DQ (did people call you that in 7th grade, ya know like daitry queen)?

Never mind, so...
1.) Do you know about the changes for 2.9 and the contactmethods filter?

&lt;code&gt;
//Filter Profile Fields
function my_new_contactmethods( $contactmethods ) {
    // add twitter
    $contactmethods[&#039;twitter&#039;] = &#039;Twitter&#039;;
    //add Facebook
    $contactmethods[&#039;facebook&#039;] = &#039;Facebook&#039;;

    return $contactmethods;
}
add_filter(&#039;user_contactmethods&#039;,&#039;my_new_contactmethods&#039;,10,1);
&lt;/code&gt;


2.) Need to add a file upload feature for .docs and .pdfs to the user profile.

Been banging out code but can not get wp to store the file name nor upload the file to a directory.

Whatcha think?

PS: Check out wpcoop.org

Thanks Daniel Quinn,

Jayson</description>
		<content:encoded><![CDATA[<p>You are truly giving.  I think you spent more time advising folks then writing the plugin itself!  A true definition of your character.  Ok DQ (did people call you that in 7th grade, ya know like daitry queen)?</p>
<p>Never mind, so...<br />
1.) Do you know about the changes for 2.9 and the contactmethods filter?</p>
<p><code><br />
//Filter Profile Fields<br />
function my_new_contactmethods( $contactmethods ) {<br />
    // add twitter<br />
    $contactmethods['twitter'] = 'Twitter';<br />
    //add Facebook<br />
    $contactmethods['facebook'] = 'Facebook';</p>
<p>    return $contactmethods;<br />
}<br />
add_filter('user_contactmethods','my_new_contactmethods',10,1);<br />
</code></p>
<p>2.) Need to add a file upload feature for .docs and .pdfs to the user profile.</p>
<p>Been banging out code but can not get wp to store the file name nor upload the file to a directory.</p>
<p>Whatcha think?</p>
<p>PS: Check out wpcoop.org</p>
<p>Thanks Daniel Quinn,</p>
<p>Jayson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3111</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 07 Jan 2010 21:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3111</guid>
		<description>lol, thanks. Be sure to check out this link:

http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

At Justin Adlock&#039;s blog, because he has a great tutorial about adding custom usermeta in 2.9 as we move toward 3.0.</description>
		<content:encoded><![CDATA[<p>lol, thanks. Be sure to check out this link:</p>
<p>http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields</p>
<p>At Justin Adlock's blog, because he has a great tutorial about adding custom usermeta in 2.9 as we move toward 3.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3093</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 06 Jan 2010 11:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3093</guid>
		<description>I figured it out 10 minutes after posting this, but I still thank you for replying ;-)

And thank you(!) for making this tutorial. After Googling for a while, it seems that this is the best tutorial out there that teaches how to add custom user meta in Wordpress&#039; profiles. So here&#039;s an Internet high five: http://www.ihighfive.com/

Thank you.</description>
		<content:encoded><![CDATA[<p>I figured it out 10 minutes after posting this, but I still thank you for replying <img src='http://www.dquinn.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>And thank you(!) for making this tutorial. After Googling for a while, it seems that this is the best tutorial out there that teaches how to add custom user meta in Wordpress' profiles. So here's an Internet high five: http://www.ihighfive.com/</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3070</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sun, 03 Jan 2010 14:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3070</guid>
		<description>I don&#039;t know what Theme My Profile does programatically but you might try using WP 2.9&#039;s new functions for adding custom user meta and see if it works, since that&#039;s a more appropriate way to accomplish this now.</description>
		<content:encoded><![CDATA[<p>I don't know what Theme My Profile does programatically but you might try using WP 2.9's new functions for adding custom user meta and see if it works, since that's a more appropriate way to accomplish this now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3069</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sun, 03 Jan 2010 14:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3069</guid>
		<description>Hi, it&#039;s possible that the portion of the tutorial above showing how to enter the checkboxes was using &lt;code&gt;$user_id&lt;/code&gt; instead of &lt;code&gt;$user-&gt;ID&lt;/code&gt;, because I had updated the tutorial to match Peter&#039;s changes to the original. I double checked against my demo at dev.dquinn.net and changed that variable, so try that. 

The checkbox usermeta is no different than other usermeta: &lt;code&gt;
update_usermeta($user_id, &#039;penguins&#039;, ( isset($_POST[&#039;penguins&#039;]) ? $_POST[&#039;penguins&#039;] : &#039;&#039; ) );
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi, it's possible that the portion of the tutorial above showing how to enter the checkboxes was using <code>$user_id</code> instead of <code>$user->ID</code>, because I had updated the tutorial to match Peter's changes to the original. I double checked against my demo at dev.dquinn.net and changed that variable, so try that. </p>
<p>The checkbox usermeta is no different than other usermeta: <code><br />
update_usermeta($user_id, 'penguins', ( isset($_POST['penguins']) ? $_POST['penguins'] : '' ) );<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-3065</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sat, 02 Jan 2010 23:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-3065</guid>
		<description>Hi,

I&#039;ve been struggling with the checkboxes for more than 2 hours now.

In your tutorial, it doesn&#039;t explain how to use the &quot;update_usermeta&quot; for the checkboxes, and that&#039;s exactly what I want to do.

I&#039;ve tried using (in update_usermeta) the strings &quot;potatoes[]&quot;, &quot;potatoes&quot;, renaming everything, etc... nothing works.

Any help would be greatly appreciated.

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I've been struggling with the checkboxes for more than 2 hours now.</p>
<p>In your tutorial, it doesn't explain how to use the "update_usermeta" for the checkboxes, and that's exactly what I want to do.</p>
<p>I've tried using (in update_usermeta) the strings "potatoes[]", "potatoes", renaming everything, etc... nothing works.</p>
<p>Any help would be greatly appreciated.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jocelyn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2794</link>
		<dc:creator>Jocelyn</dc:creator>
		<pubDate>Mon, 21 Dec 2009 09:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2794</guid>
		<description>This approach works perfectly by when I try to use &quot;theme my profile&quot; for some reason the custom field does not update. Is there something special I need to do?

Thanks</description>
		<content:encoded><![CDATA[<p>This approach works perfectly by when I try to use "theme my profile" for some reason the custom field does not update. Is there something special I need to do?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2696</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Thu, 17 Dec 2009 17:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2696</guid>
		<description>I tried using Winegoddess&#039; suggestion and inserted that code snippet into CYC - it isn&#039;t working, though. I tried a few variations and still no results - I&#039;ll try to contact her directly and if I get it working, will post the code here.</description>
		<content:encoded><![CDATA[<p>I tried using Winegoddess' suggestion and inserted that code snippet into CYC - it isn't working, though. I tried a few variations and still no results - I'll try to contact her directly and if I get it working, will post the code here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2695</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 17 Dec 2009 16:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2695</guid>
		<description>Hi Shawn, have you read the other articles in the series? The definition list gets called in your author template (or potentially any template that requests the author meta). This should be done in actual templates, not via Exec-PHP in the Dashboard.</description>
		<content:encoded><![CDATA[<p>Hi Shawn, have you read the other articles in the series? The definition list gets called in your author template (or potentially any template that requests the author meta). This should be done in actual templates, not via Exec-PHP in the Dashboard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2694</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 17 Dec 2009 16:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2694</guid>
		<description>Ah, yeah another user had the same problem with CYC above. I believe she came up with a solution, so you might want to take a look at that.</description>
		<content:encoded><![CDATA[<p>Ah, yeah another user had the same problem with CYC above. I believe she came up with a solution, so you might want to take a look at that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn McGuire</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2692</link>
		<dc:creator>Shawn McGuire</dc:creator>
		<pubDate>Thu, 17 Dec 2009 16:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2692</guid>
		<description>I created the file my-custom-user-meta.php and edited it to reflect the field that I want.  Where do I add the definition list? Also how would I go about calling that field in a page?  I&#039;m using exec-php so I can use php in pages and I am able to echo the users info but not the extra fields.  I&#039;m using the Atahualpa theme if that makes a difference</description>
		<content:encoded><![CDATA[<p>I created the file my-custom-user-meta.php and edited it to reflect the field that I want.  Where do I add the definition list? Also how would I go about calling that field in a page?  I'm using exec-php so I can use php in pages and I am able to echo the users info but not the extra fields.  I'm using the Atahualpa theme if that makes a difference</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2685</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Thu, 17 Dec 2009 05:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2685</guid>
		<description>Thank you so much for your suggestions - I reduced the custom-usermeta plugin to one variable and went through all other plugins one by one until I found the problem - Customize Your Community. Now I just need to find another way to have the registration and login forms on template pages and I should be done with the directory. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thank you so much for your suggestions - I reduced the custom-usermeta plugin to one variable and went through all other plugins one by one until I found the problem - Customize Your Community. Now I just need to find another way to have the registration and login forms on template pages and I should be done with the directory. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2662</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 15 Dec 2009 22:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2662</guid>
		<description>Thanks so much - I will do as you suggest and reduce it to 1 or 2 variables and test.</description>
		<content:encoded><![CDATA[<p>Thanks so much - I will do as you suggest and reduce it to 1 or 2 variables and test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2661</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 15 Dec 2009 21:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2661</guid>
		<description>A quick glance at your script: &lt;code&gt;get_the_author_meta(&#039;portfolio6_url&#039;, $user_id) );&lt;/code&gt; needs to be &lt;code&gt;get_the_author_meta(&#039;portfolio6_url&#039;, $user-&gt;ID) );&lt;/code&gt; but it&#039;s difficult to look at your script because there are so many values.</description>
		<content:encoded><![CDATA[<p>A quick glance at your script: <code>get_the_author_meta('portfolio6_url', $user_id) );</code> needs to be <code>get_the_author_meta('portfolio6_url', $user->ID) );</code> but it's difficult to look at your script because there are so many values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2660</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 15 Dec 2009 21:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2660</guid>
		<description>Hi Debbie, sorry I&#039;ve been busy. As you can see at my dev site (the example site in the tutorial), if you log in as a subscriber and save/edit custom user meta, the data is indeed saved and displayed to users who are not admins.

If the data&#039;s being saved in your database, that means that there&#039;s something wrong with the script that echoes it back to the front end. To troubleshoot, reduce your script to just 1 or 2 custom values and turn off all your plugins. 

If it still doesn&#039;t work, please post a link to the script with just those two values so we can see where the logic is wrong.</description>
		<content:encoded><![CDATA[<p>Hi Debbie, sorry I've been busy. As you can see at my dev site (the example site in the tutorial), if you log in as a subscriber and save/edit custom user meta, the data is indeed saved and displayed to users who are not admins.</p>
<p>If the data's being saved in your database, that means that there's something wrong with the script that echoes it back to the front end. To troubleshoot, reduce your script to just 1 or 2 custom values and turn off all your plugins. </p>
<p>If it still doesn't work, please post a link to the script with just those two values so we can see where the logic is wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2658</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 15 Dec 2009 21:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2658</guid>
		<description>Is there any kind of permissions setting I need to edit in order to be able to display entered custom author meta in the profile when a non-admin is viewing it? Extra profile data only displays for admins, not for subscribers.</description>
		<content:encoded><![CDATA[<p>Is there any kind of permissions setting I need to edit in order to be able to display entered custom author meta in the profile when a non-admin is viewing it? Extra profile data only displays for admins, not for subscribers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2574</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Fri, 11 Dec 2009 19:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2574</guid>
		<description>Sorry for posting again - I&#039;m so close to getting this working.

I&#039;m having some of the same issues others noted - custom user meta doesn&#039;t display in the profile – once the user enters it, it&#039;s being saved (because it shows up in the author template correctly) but isn&#039;t being displayed on the profile page that members have access to. 

All the custom fields and labels are there, but they’re all blank. And if the user saves that blank profile, it writes over all saved information.

However, when I&#039;m logged in as administrator and look at anyone’s profile, *all* the data is displayed correctly.

I removed the WP Hide Dashboard plugin thinking that might be the problem, but there wasn&#039;t any change.

I was hoping I was having the same problem that Rose was discussing in comments around Oct. 23, but no… Can you look at my .txt file and see if there&#039;s some terribly obvious problem with it?

http://www.redkitecreative.com/projects/cr/my-custom-user-meta.txt</description>
		<content:encoded><![CDATA[<p>Sorry for posting again - I'm so close to getting this working.</p>
<p>I'm having some of the same issues others noted - custom user meta doesn't display in the profile – once the user enters it, it's being saved (because it shows up in the author template correctly) but isn't being displayed on the profile page that members have access to. </p>
<p>All the custom fields and labels are there, but they’re all blank. And if the user saves that blank profile, it writes over all saved information.</p>
<p>However, when I'm logged in as administrator and look at anyone’s profile, *all* the data is displayed correctly.</p>
<p>I removed the WP Hide Dashboard plugin thinking that might be the problem, but there wasn't any change.</p>
<p>I was hoping I was having the same problem that Rose was discussing in comments around Oct. 23, but no… Can you look at my .txt file and see if there's some terribly obvious problem with it?</p>
<p>http://www.redkitecreative.com/projects/cr/my-custom-user-meta.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2560</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Fri, 11 Dec 2009 04:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2560</guid>
		<description>it worked! thanks.</description>
		<content:encoded><![CDATA[<p>it worked! thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2559</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Fri, 11 Dec 2009 03:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2559</guid>
		<description>I&#039;m so close to finishing my directory site. I have one major issue left - when a user fills out a profile after registering and submits, all the custom meta data submitted goes blank in profile.php. It *does* show up on the MembersList page so I know it&#039;s in the database, but it&#039;s not shown in the profile.

I *can* however view the custom meta in the admin backend, like when I edit a member profile in the MembersList section of the backend. But not in profile.php. 

I think this is because of ilne 17 in the proof-of-concept snippet in step 5 - &#039;&lt;code&gt;if ( is_admin() ) {&lt;/code&gt;&#039;

I&#039;m using the plugin WP Hide Dashboard to keep subscribers (members) from accessing my admin area. Is this why the custom user fields, limited by is_admin, are showing up as blanks for subscriber-level members? And if so, is there a conditional way to say &#039;if this is profile.php then display the custom user fields as entered&#039; in my-custom-user-meta.php&#039;s functions?</description>
		<content:encoded><![CDATA[<p>I'm so close to finishing my directory site. I have one major issue left - when a user fills out a profile after registering and submits, all the custom meta data submitted goes blank in profile.php. It *does* show up on the MembersList page so I know it's in the database, but it's not shown in the profile.</p>
<p>I *can* however view the custom meta in the admin backend, like when I edit a member profile in the MembersList section of the backend. But not in profile.php. </p>
<p>I think this is because of ilne 17 in the proof-of-concept snippet in step 5 - '<code>if ( is_admin() ) {</code>'</p>
<p>I'm using the plugin WP Hide Dashboard to keep subscribers (members) from accessing my admin area. Is this why the custom user fields, limited by is_admin, are showing up as blanks for subscriber-level members? And if so, is there a conditional way to say 'if this is profile.php then display the custom user fields as entered' in my-custom-user-meta.php's functions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2310</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Wed, 02 Dec 2009 01:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2310</guid>
		<description>No need for Register Plus - see my comment above. :)</description>
		<content:encoded><![CDATA[<p>No need for Register Plus - see my comment above. <img src='http://www.dquinn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2309</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Wed, 02 Dec 2009 01:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2309</guid>
		<description>Hi Luis, your frustrations are warranted: it&#039;s not your fault. When Peter updated the original script (see my last update to this article), he noted that &lt;code&gt;$user_id&lt;/code&gt; is now replaced with &lt;code&gt;$user-&gt;ID&lt;/code&gt;. When I updated &lt;em&gt;my&lt;/em&gt; script in this tutorial, I left out two key variables he added. 

Go ahead and copy the plugin from this page again, and it will work.</description>
		<content:encoded><![CDATA[<p>Hi Luis, your frustrations are warranted: it's not your fault. When Peter updated the original script (see my last update to this article), he noted that <code>$user_id</code> is now replaced with <code>$user->ID</code>. When I updated <em>my</em> script in this tutorial, I left out two key variables he added. </p>
<p>Go ahead and copy the plugin from this page again, and it will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2308</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Wed, 02 Dec 2009 00:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2308</guid>
		<description>I am really amazed at how it can work in other people&#039;s wordpress setups when there is no actual save of the profile-key and value to wpdb...

I just found another plugin for extending the profile however, it does it all with a single variable uep_meta which is not what I want.

Any ideas?</description>
		<content:encoded><![CDATA[<p>I am really amazed at how it can work in other people's wordpress setups when there is no actual save of the profile-key and value to wpdb...</p>
<p>I just found another plugin for extending the profile however, it does it all with a single variable uep_meta which is not what I want.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2305</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Tue, 01 Dec 2009 20:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2305</guid>
		<description>here is the link 

http://www.craftitonline.com/wp-content/plugins/my-custom-user-meta.php.txt

I thought that the reason that it was not saving the values for extra1 extra2 and extra3 was that they were not created in the database? But I did not see that step in the post. You also mentioned the use of register plus, but even when I install that and create those fields, this thing would not make sense for me.

Any ideas?</description>
		<content:encoded><![CDATA[<p>here is the link </p>
<p>http://www.craftitonline.com/wp-content/plugins/my-custom-user-meta.php.txt</p>
<p>I thought that the reason that it was not saving the values for extra1 extra2 and extra3 was that they were not created in the database? But I did not see that step in the post. You also mentioned the use of register plus, but even when I install that and create those fields, this thing would not make sense for me.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2298</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2298</guid>
		<description>The two == signs were it! Thank you so much, I&#039;ve been trying to get this to work for days. I&#039;ll post a link to my directory once it launches.</description>
		<content:encoded><![CDATA[<p>The two == signs were it! Thank you so much, I've been trying to get this to work for days. I'll post a link to my directory once it launches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2297</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2297</guid>
		<description>I think it&#039;s because you&#039;re not using the right equals sign. It needs to be two equals &quot;==&quot; instead of just &quot;=&quot; equals. The code should be:

&lt;code&gt;
if ($user-&gt;industry == &quot;Photography&quot;) { 

echo &quot;$user-&gt;company&quot;; 

}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I think it's because you're not using the right equals sign. It needs to be two equals "==" instead of just "=" equals. The code should be:</p>
<p><code><br />
if ($user->industry == "Photography") { </p>
<p>echo "$user->company"; </p>
<p>}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2296</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2296</guid>
		<description>Can you upload a .txt file containing your code to your server, and supply the link here?</description>
		<content:encoded><![CDATA[<p>Can you upload a .txt file containing your code to your server, and supply the link here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2294</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2294</guid>
		<description>Sorry - let me try that without the php tags:

$blogusers = get_users_of_blog(); //gets registered users
if ($blogusers) {
foreach ($blogusers as $bloguser) {
$user = get_userdata($bloguser-&gt;user_id);
if ($user-&gt;industry=&#039;Photography&#039;) { echo &quot;&lt;b&gt;$user-&gt;company&lt;/b&gt;&quot;; }
}
}
else { echo &quot;Bizarrely, your blog appears to have no users. Something weird has happened.&quot;; }</description>
		<content:encoded><![CDATA[<p>Sorry - let me try that without the php tags:</p>
<p>$blogusers = get_users_of_blog(); //gets registered users<br />
if ($blogusers) {<br />
foreach ($blogusers as $bloguser) {<br />
$user = get_userdata($bloguser-&gt;user_id);<br />
if ($user-&gt;industry='Photography') { echo "<b>$user-&gt;company</b>"; }<br />
}<br />
}<br />
else { echo "Bizarrely, your blog appears to have no users. Something weird has happened."; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2293</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2293</guid>
		<description>The custom plugin is working beautifully. I&#039;m also so close to being able to display a list of members by industry - I have one question though about displaying things in the loop.

Here&#039;s my code snippet for displaying a member&#039;s company name according to their industry (industry and company are two new meta fields I created using this plugin):

user_id); 
if ($user-&gt;industry=&#039;Photography&#039;) {
echo &quot;&lt;b&gt;$user-&gt;company&lt;/b&gt;&quot;; 
}
}
}
else { echo &quot;Your blog appears to have no users...&quot;; }
?&gt;

This is very close to working in that it does correctly pull all the members out of the db and print the author meta &#039;company&#039; field&#039;s value. But it&#039;s printing them for everyone and I want to restrict it by the value of the author meta &#039;industry&#039; field - when &#039;industry&#039; = &#039;something&#039;, print &#039;company.&#039;

Any suggestions? I had no idea this would be so hard...</description>
		<content:encoded><![CDATA[<p>The custom plugin is working beautifully. I'm also so close to being able to display a list of members by industry - I have one question though about displaying things in the loop.</p>
<p>Here's my code snippet for displaying a member's company name according to their industry (industry and company are two new meta fields I created using this plugin):</p>
<p>user_id);<br />
if ($user-&gt;industry='Photography') {<br />
echo "<b>$user-&gt;company</b>";<br />
}<br />
}<br />
}<br />
else { echo "Your blog appears to have no users..."; }<br />
?&gt;</p>
<p>This is very close to working in that it does correctly pull all the members out of the db and print the author meta 'company' field's value. But it's printing them for everyone and I want to restrict it by the value of the author meta 'industry' field - when 'industry' = 'something', print 'company.'</p>
<p>Any suggestions? I had no idea this would be so hard...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2289</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Tue, 01 Dec 2009 14:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2289</guid>
		<description>&lt;code&gt;
/*
Plugin Name: Custom User Meta
Plugin URI: http://blog.ftwr.co.uk/archives/2009/07/19/adding-extra-user-meta-fields
Description: Allows users to configure extra user meta values.
Author: Peter Westwood, Daniel Quinn
Version: 0.02
Author URI: http://www.dquinn.net

Add new custom user meta fields to the user&#039;s Profile in the WordPress Dashboard.

*/

class custom_user_meta {

function custom_user_meta() {
    if ( is_admin() ) {
        add_action(&#039;show_user_profile&#039;, array(&amp;$this,&#039;action_show_user_profile&#039;));
        add_action(&#039;edit_user_profile&#039;, array(&amp;$this,&#039;action_show_user_profile&#039;));
        add_action(&#039;personal_options_update&#039;, array(&amp;$this,&#039;action_process_option_update&#039;));
        add_action(&#039;edit_user_profile_update&#039;, array(&amp;$this,&#039;action_process_option_update&#039;));
    }
}

function action_show_user_profile() {
    ?&gt;
    

    
    
        
        &lt;input type=&quot;text&quot; name=&quot;extra1&quot; id=&quot;extra1&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
	
        
        &lt;input type=&quot;text&quot; name=&quot;extra2&quot; id=&quot;extra2&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
	
        
        &lt;input type=&quot;text&quot; name=&quot;extra3&quot; id=&quot;extra3&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
    
    ID, &#039;extra1&#039;, ( isset($_POST[&#039;extra1&#039;]) ? $_POST[&#039;extra1&#039;] : &#039;&#039; ) );
	update_usermeta($user-&gt;ID, &#039;extra2&#039;, ( isset($_POST[&#039;extra2&#039;]) ? $_POST[&#039;extra2&#039;] : &#039;&#039; ) );
	update_usermeta($user-&gt;ID, &#039;extra3&#039;, ( isset($_POST[&#039;extra3&#039;]) ? $_POST[&#039;extra3&#039;] : &#039;&#039; ) );
}

}

/* Initialise outselves */
add_action(&#039;plugins_loaded&#039;, create_function(&#039;&#039;,&#039;global $custom_user_meta_instance; $custom_user_meta_instance = new custom_user_meta();&#039;));

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
/*<br />
Plugin Name: Custom User Meta<br />
Plugin URI: http://blog.ftwr.co.uk/archives/2009/07/19/adding-extra-user-meta-fields<br />
Description: Allows users to configure extra user meta values.<br />
Author: Peter Westwood, Daniel Quinn<br />
Version: 0.02<br />
Author URI: http://www.dquinn.net</p>
<p>Add new custom user meta fields to the user's Profile in the WordPress Dashboard.</p>
<p>*/</p>
<p>class custom_user_meta {</p>
<p>function custom_user_meta() {<br />
    if ( is_admin() ) {<br />
        add_action('show_user_profile', array(&amp;$this,'action_show_user_profile'));<br />
        add_action('edit_user_profile', array(&amp;$this,'action_show_user_profile'));<br />
        add_action('personal_options_update', array(&amp;$this,'action_process_option_update'));<br />
        add_action('edit_user_profile_update', array(&amp;$this,'action_process_option_update'));<br />
    }<br />
}</p>
<p>function action_show_user_profile() {<br />
    ?&gt;</p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra1&quot; id=&quot;extra1&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra2&quot; id=&quot;extra2&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra3&quot; id=&quot;extra3&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>    ID, 'extra1', ( isset($_POST['extra1']) ? $_POST['extra1'] : '' ) );<br />
	update_usermeta($user-&gt;ID, 'extra2', ( isset($_POST['extra2']) ? $_POST['extra2'] : '' ) );<br />
	update_usermeta($user-&gt;ID, 'extra3', ( isset($_POST['extra3']) ? $_POST['extra3'] : '' ) );<br />
}</p>
<p>}</p>
<p>/* Initialise outselves */<br />
add_action('plugins_loaded', create_function('','global $custom_user_meta_instance; $custom_user_meta_instance = new custom_user_meta();'));</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2288</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Tue, 01 Dec 2009 14:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2288</guid>
		<description>yes I think so, please check below:

&lt;code&gt;

    

    
    
        
        &lt;input type=&quot;text&quot; name=&quot;extra1&quot; id=&quot;extra1&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
	
        
        &lt;input type=&quot;text&quot; name=&quot;extra2&quot; id=&quot;extra2&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
	
        
        &lt;input type=&quot;text&quot; name=&quot;extra3&quot; id=&quot;extra3&quot; value=&quot;ID) ); ?&gt;&quot; /&gt;
    
    
    ID, &#039;extra1&#039;, ( isset($_POST[&#039;extra1&#039;]) ? $_POST[&#039;extra1&#039;] : &#039;&#039; ) );
	update_usermeta($user-&gt;ID, &#039;extra2&#039;, ( isset($_POST[&#039;extra2&#039;]) ? $_POST[&#039;extra2&#039;] : &#039;&#039; ) );
	update_usermeta($user-&gt;ID, &#039;extra3&#039;, ( isset($_POST[&#039;extra3&#039;]) ? $_POST[&#039;extra3&#039;] : &#039;&#039; ) );
}

}

/* Initialise outselves */
add_action(&#039;plugins_loaded&#039;, create_function(&#039;&#039;,&#039;global $custom_user_meta_instance; $custom_user_meta_instance = new custom_user_meta();&#039;));
?&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>yes I think so, please check below:</p>
<p><code></p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra1&quot; id=&quot;extra1&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra2&quot; id=&quot;extra2&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>        &lt;input type=&quot;text&quot; name=&quot;extra3&quot; id=&quot;extra3&quot; value=&quot;ID) ); ?&gt;" /&gt;</p>
<p>    ID, 'extra1', ( isset($_POST['extra1']) ? $_POST['extra1'] : '' ) );<br />
	update_usermeta($user-&gt;ID, 'extra2', ( isset($_POST['extra2']) ? $_POST['extra2'] : '' ) );<br />
	update_usermeta($user-&gt;ID, 'extra3', ( isset($_POST['extra3']) ? $_POST['extra3'] : '' ) );<br />
}</p>
<p>}</p>
<p>/* Initialise outselves */<br />
add_action('plugins_loaded', create_function('','global $custom_user_meta_instance; $custom_user_meta_instance = new custom_user_meta();'));<br />
?&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2286</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 01 Dec 2009 12:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2286</guid>
		<description>Are your variables all lowercase? Are you processing the variables at the end of the script?</description>
		<content:encoded><![CDATA[<p>Are your variables all lowercase? Are you processing the variables at the end of the script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2275</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Tue, 01 Dec 2009 05:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2275</guid>
		<description>hi,

I did the trick, I see the fields on the admin back end profile page for users but when I hit save/update it wipes the field values away and they cannot be seen any longer. I doubt they get saved or stored.

help, appreciated.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I did the trick, I see the fields on the admin back end profile page for users but when I hit save/update it wipes the field values away and they cannot be seen any longer. I doubt they get saved or stored.</p>
<p>help, appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2248</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Mon, 30 Nov 2009 01:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2248</guid>
		<description>Hi Ian - that sounds awesome. Is there a comparable function for &lt;code&gt;add_filter(&#039;wpmu_validate_user_signup&#039;,&#039;registration_validation&#039;);&lt;/code&gt; in regular WP?

Look forward to reading your post.</description>
		<content:encoded><![CDATA[<p>Hi Ian - that sounds awesome. Is there a comparable function for <code>add_filter('wpmu_validate_user_signup','registration_validation');</code> in regular WP?</p>
<p>Look forward to reading your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Tasker</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2235</link>
		<dc:creator>Ian Tasker</dc:creator>
		<pubDate>Sun, 29 Nov 2009 11:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2235</guid>
		<description>@Daniel,

I have been working on extending the registration form with wordpressmu.

if you which to add fields to the form you put the html in a function and call it by 
add_action(&#039;signup_extra_fields&#039;, &#039;registration_form&#039;, 1);
to validate it by using 
add_filter(&#039;wpmu_validate_user_signup&#039;, &#039;registration_validation&#039;);

the current bit i&#039;m working on is adding all the information to user meta data, once i have go this working i will post abut it.</description>
		<content:encoded><![CDATA[<p>@Daniel,</p>
<p>I have been working on extending the registration form with wordpressmu.</p>
<p>if you which to add fields to the form you put the html in a function and call it by<br />
add_action('signup_extra_fields', 'registration_form', 1);<br />
to validate it by using<br />
add_filter('wpmu_validate_user_signup', 'registration_validation');</p>
<p>the current bit i'm working on is adding all the information to user meta data, once i have go this working i will post abut it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2218</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2218</guid>
		<description>I think you&#039;d have to modify the Members List plugin. The key may lie in the function called &lt;code&gt;pf_get_vars()&lt;/code&gt; in the plugin, because this is where he gets the user&#039;s profile information, and so your custom profile data would be obtainable there. 

You would just need to retrieve the fields you want in that function, and then maybe set them as global variables so you can access them in the &lt;code&gt;pf_output_directory()&lt;/code&gt; function.</description>
		<content:encoded><![CDATA[<p>I think you'd have to modify the Members List plugin. The key may lie in the function called <code>pf_get_vars()</code> in the plugin, because this is where he gets the user's profile information, and so your custom profile data would be obtainable there. </p>
<p>You would just need to retrieve the fields you want in that function, and then maybe set them as global variables so you can access them in the <code>pf_output_directory()</code> function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2217</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2217</guid>
		<description>Thanks for the heads up - I updated the examples here to match the fixes you made.

Thanks again for providing the plugin for us! Definitely a great holdover until 2.9 comes out.</description>
		<content:encoded><![CDATA[<p>Thanks for the heads up - I updated the examples here to match the fixes you made.</p>
<p>Thanks again for providing the plugin for us! Definitely a great holdover until 2.9 comes out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: westi</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2185</link>
		<dc:creator>westi</dc:creator>
		<pubDate>Fri, 27 Nov 2009 19:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2185</guid>
		<description>By the way you might want to update these examples as I have updated the original to fix an issue it could have with its reliance on the &lt;code&gt;$user_id&lt;/code&gt; global</description>
		<content:encoded><![CDATA[<p>By the way you might want to update these examples as I have updated the original to fix an issue it could have with its reliance on the <code>$user_id</code> global</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Tape</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2178</link>
		<dc:creator>Richard Tape</dc:creator>
		<pubDate>Fri, 27 Nov 2009 13:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2178</guid>
		<description>Hey! Thanks for this brilliant tutorial! It&#039;s already helped me add to the user&#039;s profile page. (I too had found the ftwr code however I couldn&#039;t get it to work it checkboxes - you should me how, thank you!)

I do have one question though. Do you know where I can look to be able to add one of my bits of custom meta to the users.php page - i.e. the page which lists the users? I&#039;d like to add another column after &quot;posts&quot; which includes the new checkbox that I&#039;ve implemented. Is this possible? Got any pointers?

Again, thanks for this! From a blustery, chilly, rainy Manchester, England.</description>
		<content:encoded><![CDATA[<p>Hey! Thanks for this brilliant tutorial! It's already helped me add to the user's profile page. (I too had found the ftwr code however I couldn't get it to work it checkboxes - you should me how, thank you!)</p>
<p>I do have one question though. Do you know where I can look to be able to add one of my bits of custom meta to the users.php page - i.e. the page which lists the users? I'd like to add another column after "posts" which includes the new checkbox that I've implemented. Is this possible? Got any pointers?</p>
<p>Again, thanks for this! From a blustery, chilly, rainy Manchester, England.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2133</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2133</guid>
		<description>Thanks for the quick reply! It&#039;s a directory for designers so I can just modify the new user email to let them know they need to edit their profile. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick reply! It's a directory for designers so I can just modify the new user email to let them know they need to edit their profile. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2132</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2132</guid>
		<description>Sadly, I don&#039;t know how you would show the new profile meta on the registration form. There are plugins however that redirect the user to a specified page (or the profile) upon login/registration, so making them fill out the profile after they register is a possibility. Moreover, it&#039;s probably better from a user experience perspective to have them just fill out their basic credentials (no extra meta), as that&#039;s what most other sites do these days.

These fields are &quot;regular&quot; in the sense that they&#039;re stored and managed in the database the same way the default fields for the profile are (no wonky extra tables or whatnot), but they are not custom fields (so you can&#039;t use get post custom meta to retrieve them), because custom fields are meta assigned to posts. Because these are author meta, you can use the default author meta functions to retrieve them in the loop.

(&lt;strong&gt;*edit*&lt;/strong&gt; as for sorting, see Ruben&#039;s comment in this thread. He posted a solution on his blog, but you&#039;ll need to use Google Translate unless you speak Dutch.)</description>
		<content:encoded><![CDATA[<p>Sadly, I don't know how you would show the new profile meta on the registration form. There are plugins however that redirect the user to a specified page (or the profile) upon login/registration, so making them fill out the profile after they register is a possibility. Moreover, it's probably better from a user experience perspective to have them just fill out their basic credentials (no extra meta), as that's what most other sites do these days.</p>
<p>These fields are "regular" in the sense that they're stored and managed in the database the same way the default fields for the profile are (no wonky extra tables or whatnot), but they are not custom fields (so you can't use get post custom meta to retrieve them), because custom fields are meta assigned to posts. Because these are author meta, you can use the default author meta functions to retrieve them in the loop.</p>
<p>(<strong>*edit*</strong> as for sorting, see Ruben's comment in this thread. He posted a solution on his blog, but you'll need to use Google Translate unless you speak Dutch.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie Campbell</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2131</link>
		<dc:creator>Debbie Campbell</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2131</guid>
		<description>This is a great guide - I&#039;m on the last post and everything&#039;s working fine. I&#039;m not a programmer but I&#039;ve had no problems implementing this excellent tutorial.

I&#039;d tried RegisterPlus and CIMY but wasn&#039;t happy with either - this seems to be perfect.

One potentially dumb question: Is it possible to show the new profile fields in the registration form? wp-login.php?action=register... Or do I make my users register and *then* go to the profile form?

And, are these &#039;regular&#039; custom fields so that I can do anything with them that I&#039;d normally do with custom fields, like sorting?</description>
		<content:encoded><![CDATA[<p>This is a great guide - I'm on the last post and everything's working fine. I'm not a programmer but I've had no problems implementing this excellent tutorial.</p>
<p>I'd tried RegisterPlus and CIMY but wasn't happy with either - this seems to be perfect.</p>
<p>One potentially dumb question: Is it possible to show the new profile fields in the registration form? wp-login.php?action=register... Or do I make my users register and *then* go to the profile form?</p>
<p>And, are these 'regular' custom fields so that I can do anything with them that I'd normally do with custom fields, like sorting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2113</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sat, 21 Nov 2009 19:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2113</guid>
		<description>Great! Thanks for sharing. I will update the article to include your link.</description>
		<content:encoded><![CDATA[<p>Great! Thanks for sharing. I will update the article to include your link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2112</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Sat, 21 Nov 2009 19:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2112</guid>
		<description>In the plugin script, see if you can check if the logged in user has a high enough user level via an if statement. Enclose the editable field in this conditional.</description>
		<content:encoded><![CDATA[<p>In the plugin script, see if you can check if the logged in user has a high enough user level via an if statement. Enclose the editable field in this conditional.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2111</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Sat, 21 Nov 2009 13:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2111</guid>
		<description>I solved the problem mentioned earlier regarding the sorting of the custom fields. In the following blogpost (in Dutch) you can see the solution I had implemented: http://rubenwoudsma.nl/wordpress-gebruikersprofiel-uitbreiden/</description>
		<content:encoded><![CDATA[<p>I solved the problem mentioned earlier regarding the sorting of the custom fields. In the following blogpost (in Dutch) you can see the solution I had implemented: http://rubenwoudsma.nl/wordpress-gebruikersprofiel-uitbreiden/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress gebruikersprofiel uitbreiden &#171; Ruben Woudsma</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-2102</link>
		<dc:creator>WordPress gebruikersprofiel uitbreiden &#171; Ruben Woudsma</dc:creator>
		<pubDate>Fri, 20 Nov 2009 13:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-2102</guid>
		<description>[...] omdat hiervoor naar mijn idee geen eenvoudige plugins aanwezig waren.  Op basis van een bericht van Daniel Quinn heb ik een eigen plugin gemaakt met daarin specifieke velden die aan ons doel voldeden. Al met al [...]</description>
		<content:encoded><![CDATA[<p>[...] omdat hiervoor naar mijn idee geen eenvoudige plugins aanwezig waren.  Op basis van een bericht van Daniel Quinn heb ik een eigen plugin gemaakt met daarin specifieke velden die aan ons doel voldeden. Al met al [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1997</link>
		<dc:creator>Timur</dc:creator>
		<pubDate>Sat, 14 Nov 2009 16:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1997</guid>
		<description>Hello, thank for helpfull article.
How can i add fields editign only by admin?</description>
		<content:encoded><![CDATA[<p>Hello, thank for helpfull article.<br />
How can i add fields editign only by admin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1907</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 10 Nov 2009 22:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1907</guid>
		<description>You should be able to make a call to the_author_meta because these values are saved in the same place that regular author meta is saved: 

[php]
echo &quot;This is my Twitter name:&quot;;
the_author_meta(&#039;twitter&#039;);
[/php]</description>
		<content:encoded><![CDATA[<p>You should be able to make a call to the_author_meta because these values are saved in the same place that regular author meta is saved: </p>
<pre class="brush: php;">
echo "This is my Twitter name:";
the_author_meta('twitter');
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giles</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1906</link>
		<dc:creator>Giles</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1906</guid>
		<description>Hi Daniel,

Thanks for the quick response.

I will have a look into it and if I get anywhere will share the results with everyone else.

Thanks again mate

Giles</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>Thanks for the quick response.</p>
<p>I will have a look into it and if I get anywhere will share the results with everyone else.</p>
<p>Thanks again mate</p>
<p>Giles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1905</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1905</guid>
		<description>I think you&#039;ll need to modify Members List so that the plugin only gets users where the user_level is equal to the role you are interested in. Last I remember, Members List makes direct calls to the database to compile the list of users.</description>
		<content:encoded><![CDATA[<p>I think you'll need to modify Members List so that the plugin only gets users where the user_level is equal to the role you are interested in. Last I remember, Members List makes direct calls to the database to compile the list of users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1904</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1904</guid>
		<description>This looks fantastic Vlad, great job. I signed up to check it out (you can delete me if need be!). I also like that you have the user registration in the theme&#039;s design, that is a nice touch.</description>
		<content:encoded><![CDATA[<p>This looks fantastic Vlad, great job. I signed up to check it out (you can delete me if need be!). I also like that you have the user registration in the theme's design, that is a nice touch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1902</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1902</guid>
		<description>Hey Daniel, if you remember i was asking you about the checkboxes, and i wrote that i will show you the result of the work. So here it is http://prospace.superfreelancer.com. &quot;Search freelancers by skills&quot; - on the right is actually the values of checkboxes of custom user meta script. Register a profile if you like, and check how it&#039;s work. Thanks again for creating this script.</description>
		<content:encoded><![CDATA[<p>Hey Daniel, if you remember i was asking you about the checkboxes, and i wrote that i will show you the result of the work. So here it is http://prospace.superfreelancer.com. "Search freelancers by skills" - on the right is actually the values of checkboxes of custom user meta script. Register a profile if you like, and check how it's work. Thanks again for creating this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giles</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1901</link>
		<dc:creator>Giles</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1901</guid>
		<description>Hi,

Thanks for this tutorial, its really helped me customise my blog the way i need to. 

I was wondering though and 
hopefully i didnt miss this but is there was anyway to only show users with certain roles such as just showing contributors etc or even better custom roles that are created with another plugin?

Thanks

Giles</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this tutorial, its really helped me customise my blog the way i need to. </p>
<p>I was wondering though and<br />
hopefully i didnt miss this but is there was anyway to only show users with certain roles such as just showing contributors etc or even better custom roles that are created with another plugin?</p>
<p>Thanks</p>
<p>Giles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1881</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Tue, 10 Nov 2009 04:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1881</guid>
		<description>great plugin/tutorial!
I got it to work on the author.php page,

Is there any way I can get the fields to show up on a post page like the single.php page

ie at the end of each post I want some of the extra author info to show.

Thanks!
B</description>
		<content:encoded><![CDATA[<p>great plugin/tutorial!<br />
I got it to work on the author.php page,</p>
<p>Is there any way I can get the fields to show up on a post page like the single.php page</p>
<p>ie at the end of each post I want some of the extra author info to show.</p>
<p>Thanks!<br />
B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1865</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Mon, 09 Nov 2009 16:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1865</guid>
		<description>Can anyone help out Ruben? I haven&#039;t done a lot of work with direct database queries, but sorting users by a custom field would be very useful.</description>
		<content:encoded><![CDATA[<p>Can anyone help out Ruben? I haven't done a lot of work with direct database queries, but sorting users by a custom field would be very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1864</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Mon, 09 Nov 2009 16:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1864</guid>
		<description>That is a good question, as in this setup we want to use the custom fields we&#039;ve added rather than fields that might be added through a plugin like Register Plus. I will be working on a site soon that requires an extended registration form, so I will get back to you if I come up with a solution.</description>
		<content:encoded><![CDATA[<p>That is a good question, as in this setup we want to use the custom fields we've added rather than fields that might be added through a plugin like Register Plus. I will be working on a site soon that requires an extended registration form, so I will get back to you if I come up with a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enclave</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1858</link>
		<dc:creator>enclave</dc:creator>
		<pubDate>Mon, 09 Nov 2009 08:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1858</guid>
		<description>Thanks for sharing.

I am hoping one of the approaches here is going to enable me to do the personalization of pages i am looking at with user meta data</description>
		<content:encoded><![CDATA[<p>Thanks for sharing.</p>
<p>I am hoping one of the approaches here is going to enable me to do the personalization of pages i am looking at with user meta data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alvin Crespo</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1762</link>
		<dc:creator>Alvin Crespo</dc:creator>
		<pubDate>Thu, 05 Nov 2009 00:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1762</guid>
		<description>Hey Everyone,

Great Post! However I am trying to add the first name and last name fields onto the signup/register form? Any advice? I can&#039;t seem to find any good advice or reference for this. Any help would be great, thanks!</description>
		<content:encoded><![CDATA[<p>Hey Everyone,</p>
<p>Great Post! However I am trying to add the first name and last name fields onto the signup/register form? Any advice? I can't seem to find any good advice or reference for this. Any help would be great, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1716</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Tue, 03 Nov 2009 10:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1716</guid>
		<description>Thank you for this nice tutorial. I was using the plugin &#039;Extended User Profile&#039;, but this was not very flexible. Changing this plugin is easy and suitable for me.

A question I have regarding this is the following. How can I list all the users sorted on one of the custom user meta fields?

I use the following query to retrieve all the users/members, but in that one I can only sort on: ID, user_login, user_nicename, user_email, user_url and user_registered and not on the userdata fields.

[php]
$szSort = &quot;user_nicename&quot;;

$aUsersID = $wpdb-&gt;get_col( $wpdb-&gt;prepare(
	&quot;SELECT $wpdb-&gt;users.ID FROM $wpdb-&gt;users ORDER BY %s ASC&quot;
	, $szSort ));

foreach ( $aUsersID as $iUserID ) :
	$user = get_userdata( $iUserID );
	echo ucwords( strtolower( $user-&gt;first_name ) );
endforeach;
[/php]</description>
		<content:encoded><![CDATA[<p>Thank you for this nice tutorial. I was using the plugin 'Extended User Profile', but this was not very flexible. Changing this plugin is easy and suitable for me.</p>
<p>A question I have regarding this is the following. How can I list all the users sorted on one of the custom user meta fields?</p>
<p>I use the following query to retrieve all the users/members, but in that one I can only sort on: ID, user_login, user_nicename, user_email, user_url and user_registered and not on the userdata fields.</p>
<pre class="brush: php;">
$szSort = "user_nicename";

$aUsersID = $wpdb-&gt;get_col( $wpdb-&gt;prepare(
	"SELECT $wpdb-&gt;users.ID FROM $wpdb-&gt;users ORDER BY %s ASC"
	, $szSort ));

foreach ( $aUsersID as $iUserID ) :
	$user = get_userdata( $iUserID );
	echo ucwords( strtolower( $user-&gt;first_name ) );
endforeach;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1627</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 29 Oct 2009 23:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1627</guid>
		<description>Hmm, that is an interesting question. I&#039;m not sure why you want to tie it to a post, but I could see how this would work with a page. If you had a custom page template, you could have it present a form to update profile meta only if the user is logged in (otherwise it asks the user to log in). Then you could check which user is logged in and populate the form based on that. The only difficulty is that I think you&#039;ll have to interact directly with the database to update the user&#039;s information, and since I&#039;m not well-versed in how WP&#039;s security as far as writing directly to the database goes, I can only advise you to be careful:

[php]
if (is_user_logged_in()) {
     // get the database query
     global $wpdb;
     // 1. Figure out which user it is by comparing the user ID or some other unique identifier to the ID in the database.
     // 2. Use $wpdb-&gt;get_var(&quot;SQL goes here&quot;); to retrieve the profile meta and populate the form for that user.
     // 4. Create your own validation (both front-end and server-side) and then hope it works.
     // 3. Use $wpdb-&gt;query($insert); (where $insert is the altered profile meta) to insert the data back.     
}
[/php]</description>
		<content:encoded><![CDATA[<p>Hmm, that is an interesting question. I'm not sure why you want to tie it to a post, but I could see how this would work with a page. If you had a custom page template, you could have it present a form to update profile meta only if the user is logged in (otherwise it asks the user to log in). Then you could check which user is logged in and populate the form based on that. The only difficulty is that I think you'll have to interact directly with the database to update the user's information, and since I'm not well-versed in how WP's security as far as writing directly to the database goes, I can only advise you to be careful:</p>
<pre class="brush: php;">
if (is_user_logged_in()) {
     // get the database query
     global $wpdb;
     // 1. Figure out which user it is by comparing the user ID or some other unique identifier to the ID in the database.
     // 2. Use $wpdb->get_var("SQL goes here"); to retrieve the profile meta and populate the form for that user.
     // 4. Create your own validation (both front-end and server-side) and then hope it works.
     // 3. Use $wpdb->query($insert); (where $insert is the altered profile meta) to insert the data back.
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: jinglicio.us</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1625</link>
		<dc:creator>jinglicio.us</dc:creator>
		<pubDate>Thu, 29 Oct 2009 23:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1625</guid>
		<description>I was thinking the profile meta, as in the information that users can enter into their profiles...

So the form would be public (tied to a post), but they could change it later via their profile.</description>
		<content:encoded><![CDATA[<p>I was thinking the profile meta, as in the information that users can enter into their profiles...</p>
<p>So the form would be public (tied to a post), but they could change it later via their profile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1624</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 29 Oct 2009 21:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1624</guid>
		<description>By custom meta fields, do you mean profile meta, as in the information that users can enter into their profiles, or custom meta as in the information that can be assigned to any post via custom fields?</description>
		<content:encoded><![CDATA[<p>By custom meta fields, do you mean profile meta, as in the information that users can enter into their profiles, or custom meta as in the information that can be assigned to any post via custom fields?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jinglicio.us</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1623</link>
		<dc:creator>jinglicio.us</dc:creator>
		<pubDate>Thu, 29 Oct 2009 18:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1623</guid>
		<description>Daniel, thanks for the great tutorial and starter code.  

I was curious how much I would need to change/add in order to display a set of custom meta fields as a stand alone form within a post?</description>
		<content:encoded><![CDATA[<p>Daniel, thanks for the great tutorial and starter code.  </p>
<p>I was curious how much I would need to change/add in order to display a set of custom meta fields as a stand alone form within a post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1620</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 29 Oct 2009 16:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1620</guid>
		<description>Fascinating. I was just about to take a look at this, as CYC is something I too want to use in the near future. Do all the extra fields save/function as expected?</description>
		<content:encoded><![CDATA[<p>Fascinating. I was just about to take a look at this, as CYC is something I too want to use in the near future. Do all the extra fields save/function as expected?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Winegoddess</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1619</link>
		<dc:creator>Winegoddess</dc:creator>
		<pubDate>Thu, 29 Oct 2009 16:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1619</guid>
		<description>I solved it by adding this to the plugin. Not sure if it is the most elegant solution.

[php]
function action_show_user_profile() {
    global $user_id;
    
    if (!$user_id) {
    	$current_user = wp_get_current_user();
		//global $user_id;
		$user_id = $current_user-&gt;ID;
    	
    }
[/php]</description>
		<content:encoded><![CDATA[<p>I solved it by adding this to the plugin. Not sure if it is the most elegant solution.</p>
<pre class="brush: php;">
function action_show_user_profile() {
    global $user_id;

    if (!$user_id) {
    	$current_user = wp_get_current_user();
		//global $user_id;
		$user_id = $current_user->ID;

    }
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Winegoddess</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1618</link>
		<dc:creator>Winegoddess</dc:creator>
		<pubDate>Thu, 29 Oct 2009 14:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1618</guid>
		<description>Thanks for your reply! I mean when the user views their own profile. Im using the Customize Your Community plugin. It calls do_action(&#039;show_user_profile&#039;);

This displays the new extra fields, but is not showing values. 

I added debugging code on your AWESOME PIECE OF WORK, and it does not have access to $user_id. 

However, it does save to the db somehow. 

A thousand thank you&#039;s and a kajillion units of good karma if you can help. :)</description>
		<content:encoded><![CDATA[<p>Thanks for your reply! I mean when the user views their own profile. Im using the Customize Your Community plugin. It calls do_action('show_user_profile');</p>
<p>This displays the new extra fields, but is not showing values. </p>
<p>I added debugging code on your AWESOME PIECE OF WORK, and it does not have access to $user_id. </p>
<p>However, it does save to the db somehow. </p>
<p>A thousand thank you's and a kajillion units of good karma if you can help. <img src='http://www.dquinn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1617</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 29 Oct 2009 14:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1617</guid>
		<description>Do you mean on the page that uses the author template, or in the profile?</description>
		<content:encoded><![CDATA[<p>Do you mean on the page that uses the author template, or in the profile?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Winegoddess</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1602</link>
		<dc:creator>Winegoddess</dc:creator>
		<pubDate>Thu, 29 Oct 2009 04:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1602</guid>
		<description>THANK YOU!

You have taught me so much in this one article!

I am having issues though.

Logged in as a subscriber, Im unable to see my own extra field. 

My value is saved in the db - took me an hour to see it - on page 2 of PhpMyadmin results...ugh.

AND - I can see it when I am logged in as an admin looking at the subscriber.

Any ideas?  Thanks!

Judy</description>
		<content:encoded><![CDATA[<p>THANK YOU!</p>
<p>You have taught me so much in this one article!</p>
<p>I am having issues though.</p>
<p>Logged in as a subscriber, Im unable to see my own extra field. </p>
<p>My value is saved in the db - took me an hour to see it - on page 2 of PhpMyadmin results...ugh.</p>
<p>AND - I can see it when I am logged in as an admin looking at the subscriber.</p>
<p>Any ideas?  Thanks!</p>
<p>Judy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladart</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1591</link>
		<dc:creator>Vladart</dc:creator>
		<pubDate>Wed, 28 Oct 2009 08:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1591</guid>
		<description>Daniel, thanks for creating this very nice plugin and for your help. I&#039;ll send you a link, after i&#039;ll finish doing what i&#039;m doing.</description>
		<content:encoded><![CDATA[<p>Daniel, thanks for creating this very nice plugin and for your help. I'll send you a link, after i'll finish doing what i'm doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1583</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Wed, 28 Oct 2009 01:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1583</guid>
		<description>My mistake, I didn&#039;t check if the checkbox values were arrays before echoing them. I&#039;ve added a check to is_array to fix this.</description>
		<content:encoded><![CDATA[<p>My mistake, I didn't check if the checkbox values were arrays before echoing them. I've added a check to is_array to fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladart</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1574</link>
		<dc:creator>Vladart</dc:creator>
		<pubDate>Tue, 27 Oct 2009 21:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1574</guid>
		<description>It&#039;s great and it&#039;s working! Thanks very much for your help. There is one little problem. In case the checkbox is not checked there is a PHP warning: Warning: in_array() expects parameter 2 to be array, string given in...</description>
		<content:encoded><![CDATA[<p>It's great and it's working! Thanks very much for your help. There is one little problem. In case the checkbox is not checked there is a PHP warning: Warning: in_array() expects parameter 2 to be array, string given in...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1569</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 27 Oct 2009 13:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1569</guid>
		<description>I&#039;ve put an example in the tutorial above.</description>
		<content:encoded><![CDATA[<p>I've put an example in the tutorial above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1568</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Tue, 27 Oct 2009 13:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1568</guid>
		<description>I&#039;ve added an explanation as to how one would handle checkboxes, radio buttons, and dropdowns to the tutorial.</description>
		<content:encoded><![CDATA[<p>I've added an explanation as to how one would handle checkboxes, radio buttons, and dropdowns to the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1554</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Mon, 26 Oct 2009 17:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1554</guid>
		<description>Let&#039;s try again:

I guess my problem is a bit more inexperienced than that. I don&#039;t know how to properly echo the value. I have a value echoed in my author template for the radio buttons/checks/drop downs but because each one has multiple values I&#039;m confused.

I&#039;ll explain: With text fields and text area fields it was easy. The name, id and value (after &quot;get_author_meta&quot; between the single quotes) were the same value:
 
[php][/php]

I could repeat that value in the process code at the bottom like this:

[php]update_usermeta($user_id, &#039;value&#039;, ( isset($_POST[&#039;value&#039;]) ? $_POST[&#039;value&#039;] : &#039;&#039; ) );[/php]

but with radio buttons it&#039;s a whole new ball of wax. There&#039;s the name, id and value however each button in the group has a different value and id. Or does it? Isn&#039;t the value the meaning of the button? For example if there are two buttons and one represents &quot;yes&quot; and the other &quot;no&quot; then isn&#039;t the value for one yes and the other no? And then with the processing code, do I process them as a radio group and use the name/id/value for the group, or do I have to have something for each value and if so how do I echo that in the author template so that it shows yes or no for that particular question depending upon what the user filled out? Right now I just have it echoing the value for the group and all the values within the group are the same but the id is different:

[php]&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;&quot; id=&quot;yesorno_1&quot;&gt;&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;&quot; id=&quot;yesorno_2&quot;&gt;[/php]

Then I process it with:

[php] function action_process_option_update() {
    global $user_id;
    update_usermeta($user_id, &#039;yesorno&#039;, ( isset($_POST[&#039;yesorno&#039;]) ? $_POST[&#039;yesorno&#039;] : &#039;&#039; ) );
[/php]

And then echo it with:

[php]yesorno; ?&gt;[/php]

I&#039;m certain this is wrong but I&#039;m sufficiently confused enough that I&#039;m not sure how to handle it.</description>
		<content:encoded><![CDATA[<p>Let's try again:</p>
<p>I guess my problem is a bit more inexperienced than that. I don't know how to properly echo the value. I have a value echoed in my author template for the radio buttons/checks/drop downs but because each one has multiple values I'm confused.</p>
<p>I'll explain: With text fields and text area fields it was easy. The name, id and value (after "get_author_meta" between the single quotes) were the same value:</p>
<pre class="brush: php;">[/php]

I could repeat that value in the process code at the bottom like this:

[php]update_usermeta($user_id, 'value', ( isset($_POST['value']) ? $_POST['value'] : '' ) );</pre>
<p>but with radio buttons it's a whole new ball of wax. There's the name, id and value however each button in the group has a different value and id. Or does it? Isn't the value the meaning of the button? For example if there are two buttons and one represents "yes" and the other "no" then isn't the value for one yes and the other no? And then with the processing code, do I process them as a radio group and use the name/id/value for the group, or do I have to have something for each value and if so how do I echo that in the author template so that it shows yes or no for that particular question depending upon what the user filled out? Right now I just have it echoing the value for the group and all the values within the group are the same but the id is different:</p>
<pre class="brush: php;">&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;" id="yesorno_1"&gt;&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;" id="yesorno_2"&gt;</pre>
<p>Then I process it with:</p>
<pre class="brush: php;"> function action_process_option_update() {
    global $user_id;
    update_usermeta($user_id, 'yesorno', ( isset($_POST['yesorno']) ? $_POST['yesorno'] : '' ) );
</pre>
<p>And then echo it with:</p>
<pre class="brush: php;">yesorno; ?&gt;</pre>
<p>I'm certain this is wrong but I'm sufficiently confused enough that I'm not sure how to handle it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1552</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Mon, 26 Oct 2009 17:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1552</guid>
		<description>Sorry the php thingy got really screwed up.</description>
		<content:encoded><![CDATA[<p>Sorry the php thingy got really screwed up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1551</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Mon, 26 Oct 2009 17:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1551</guid>
		<description>I guess my problem is a bit more inexperienced than that. I don&#039;t know how to properly echo the value. I have a value echoed in my author template for the radio buttons/checks/drop downs but because each one has multiple values I&#039;m confused.

I&#039;ll explain: With text fields and text area fields it was easy. The name, id and value (after &quot;get_author_meta&quot; between the single quotes) were the same value:
 
[php][/php]

I could repeat that value in the process code at the bottom like this:

[php]update_usermeta($user_id, &#039;value&#039;, ( isset($_POST[&#039;value&#039;]) ? $_POST[&#039;value&#039;] : &#039;&#039; ) );[php/]

but with radio buttons it&#039;s a whole new ball of wax. There&#039;s the name, id and value however each button in the group has a different value and id. Or does it? Isn&#039;t the value the meaning of the button? For example if there are two buttons and one represents &quot;yes&quot; and the other &quot;no&quot; then isn&#039;t the value for one yes and the other no? And then with the processing code, do I process them as a radio group and use the name/id/value for the group, or do I have to have something for each value and if so how do I echo that in the author template so that it shows yes or no for that particular question depending upon what the user filled out? Right now I just have it echoing the value for the group and all the values within the group are the same but the id is different:

[php]&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;&quot; id=&quot;yesorno_1&quot;&gt;&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;&quot; id=&quot;yesorno_2&quot;&gt;[/php]

Then I process it with:

[php] function action_process_option_update() {
    global $user_id;
    update_usermeta($user_id, &#039;yesorno&#039;, ( isset($_POST[&#039;yesorno&#039;]) ? $_POST[&#039;yesorno&#039;] : &#039;&#039; ) );
[/php]

And then echo it with:

[php]yesorno; ?&gt;[/php]

I&#039;m certain this is wrong but I&#039;m sufficiently confused enough that I&#039;m not sure how to handle it.</description>
		<content:encoded><![CDATA[<p>I guess my problem is a bit more inexperienced than that. I don't know how to properly echo the value. I have a value echoed in my author template for the radio buttons/checks/drop downs but because each one has multiple values I'm confused.</p>
<p>I'll explain: With text fields and text area fields it was easy. The name, id and value (after "get_author_meta" between the single quotes) were the same value:</p>
<pre class="brush: php;">[/php]

I could repeat that value in the process code at the bottom like this:

[php]update_usermeta($user_id, 'value', ( isset($_POST['value']) ? $_POST['value'] : '' ) );[php/]

but with radio buttons it's a whole new ball of wax. There's the name, id and value however each button in the group has a different value and id. Or does it? Isn't the value the meaning of the button? For example if there are two buttons and one represents "yes" and the other "no" then isn't the value for one yes and the other no? And then with the processing code, do I process them as a radio group and use the name/id/value for the group, or do I have to have something for each value and if so how do I echo that in the author template so that it shows yes or no for that particular question depending upon what the user filled out? Right now I just have it echoing the value for the group and all the values within the group are the same but the id is different:

[php]&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;" id="yesorno_1"&gt;&lt;input type=&quot;radio&quot; name=&quot;yesorno&quot; value=&quot;" id="yesorno_2"&gt;</pre>
<p>Then I process it with:</p>
<pre class="brush: php;"> function action_process_option_update() {
    global $user_id;
    update_usermeta($user_id, 'yesorno', ( isset($_POST['yesorno']) ? $_POST['yesorno'] : '' ) );
</pre>
<p>And then echo it with:</p>
<pre class="brush: php;">yesorno; ?&gt;</pre>
<p>I'm certain this is wrong but I'm sufficiently confused enough that I'm not sure how to handle it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladart</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1549</link>
		<dc:creator>Vladart</dc:creator>
		<pubDate>Mon, 26 Oct 2009 14:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1549</guid>
		<description>I&#039;ve tried to echo it and it did show up in somepoint... Yes, if put checked=&quot;checked&quot; in the input tag, for a test purpose, it&#039;s working ok.</description>
		<content:encoded><![CDATA[<p>I've tried to echo it and it did show up in somepoint... Yes, if put checked="checked" in the input tag, for a test purpose, it's working ok.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1547</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Mon, 26 Oct 2009 12:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1547</guid>
		<description>Before I check this out, could you verify - 1) Have you tried to echo the value out in your author template (in which case it&lt;em&gt; is&lt;/em&gt; actually saving it to the database) and 2) Have you tried to conditionally check if the value echoed out is equal to the dropdown value and then place a &quot;selected&quot; (or &quot;checked=true&quot; for radio buttons/checks) attribute on the option group?</description>
		<content:encoded><![CDATA[<p>Before I check this out, could you verify - 1) Have you tried to echo the value out in your author template (in which case it<em> is</em> actually saving it to the database) and 2) Have you tried to conditionally check if the value echoed out is equal to the dropdown value and then place a "selected" (or "checked=true" for radio buttons/checks) attribute on the option group?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1545</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Mon, 26 Oct 2009 12:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1545</guid>
		<description>Before I check this out, could you verify - 1) Have you tried to echo the value out in your author template (in which case it&lt;em&gt; is&lt;/em&gt; actually saving it to the database) and 2) Have you tried to conditionally check if the value echoed out is equal to the checkbox value and then place a &quot;checked=true&quot; on the checkbox?</description>
		<content:encoded><![CDATA[<p>Before I check this out, could you verify - 1) Have you tried to echo the value out in your author template (in which case it<em> is</em> actually saving it to the database) and 2) Have you tried to conditionally check if the value echoed out is equal to the checkbox value and then place a "checked=true" on the checkbox?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1474</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Mon, 26 Oct 2009 05:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1474</guid>
		<description>Yes its true, if you make the variables uppercase it does not store the value! Lowercase works fine.

Thanks for the tut! Implemented it perfectly!</description>
		<content:encoded><![CDATA[<p>Yes its true, if you make the variables uppercase it does not store the value! Lowercase works fine.</p>
<p>Thanks for the tut! Implemented it perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladart</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1470</link>
		<dc:creator>Vladart</dc:creator>
		<pubDate>Sun, 25 Oct 2009 23:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1470</guid>
		<description>Hey, this is a great, lets call it a plugin, but what about checkbox inputs? I&#039;ve tried to make it work, but... The checkbox isn&#039;t staying checked after the form being submitted and ofcourse the value of it isn&#039;t showing up on a page. If any one knows the solution, please share.</description>
		<content:encoded><![CDATA[<p>Hey, this is a great, lets call it a plugin, but what about checkbox inputs? I've tried to make it work, but... The checkbox isn't staying checked after the form being submitted and ofcourse the value of it isn't showing up on a page. If any one knows the solution, please share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1468</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Sun, 25 Oct 2009 16:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1468</guid>
		<description>solved, added break tags on the Members List - Configure Markup page.</description>
		<content:encoded><![CDATA[<p>solved, added break tags on the Members List - Configure Markup page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1467</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Sun, 25 Oct 2009 16:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1467</guid>
		<description>Hi again,
It seems that this doesn&#039;t work with the &quot;Theme my Profile&quot; plugin.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi again,<br />
It seems that this doesn't work with the "Theme my Profile" plugin.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1464</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Sun, 25 Oct 2009 15:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1464</guid>
		<description>Hi Daniel,

Thanks for this great tutorial!  One thing I don&#039;t know how to do is to get the extra fields to display on separate lines.  Right now its displaying in sentence structure.  Is this possible to do?</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>Thanks for this great tutorial!  One thing I don't know how to do is to get the extra fields to display on separate lines.  Right now its displaying in sentence structure.  Is this possible to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1446</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Sat, 24 Oct 2009 01:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1446</guid>
		<description>Oh dear, and I almost forgot, drop down selections too.</description>
		<content:encoded><![CDATA[<p>Oh dear, and I almost forgot, drop down selections too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1444</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Fri, 23 Oct 2009 20:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1444</guid>
		<description>YES! That was tedious but it worked perfectly! You are AWESOME! Thank you, Thank you, Thank you!!!

I hope I might also be able to ask another question. How do I correctly format radio buttons and checks? Those are the only fields that are still not working/not showing up/saving and think I may have something set up wrong with them. I put a new updated version of the file at the link I gave above.</description>
		<content:encoded><![CDATA[<p>YES! That was tedious but it worked perfectly! You are AWESOME! Thank you, Thank you, Thank you!!!</p>
<p>I hope I might also be able to ask another question. How do I correctly format radio buttons and checks? Those are the only fields that are still not working/not showing up/saving and think I may have something set up wrong with them. I put a new updated version of the file at the link I gave above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1441</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Fri, 23 Oct 2009 17:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1441</guid>
		<description>You&#039;re going to scream when you hear this: Apparently WordPress won&#039;t save the variables if they are camel-case. So &quot;oceanPhoto&quot; won&#039;t save, but &quot;oceanphoto&quot; will. Go through your plugin script and change all variables to lowercase and it will work.</description>
		<content:encoded><![CDATA[<p>You're going to scream when you hear this: Apparently WordPress won't save the variables if they are camel-case. So "oceanPhoto" won't save, but "oceanphoto" will. Go through your plugin script and change all variables to lowercase and it will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1424</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Fri, 23 Oct 2009 01:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1424</guid>
		<description>http://www.snuba.com/customMeta/my-custom-user-meta.txt</description>
		<content:encoded><![CDATA[<p>http://www.snuba.com/customMeta/my-custom-user-meta.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1423</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 22 Oct 2009 23:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1423</guid>
		<description>Can you upload your file to your server as a .txt file and post a URL here? Then I can view it.</description>
		<content:encoded><![CDATA[<p>Can you upload your file to your server as a .txt file and post a URL here? Then I can view it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1421</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1421</guid>
		<description>I tried to post the code again and now the comment isn&#039;t here. This is not working. Can I e-mail it to you? Maybe I could give you a link to download the my-custom-user-meta.php file? And then adding to my fluster the comments form won&#039;t let me insert my cursor in between text without highlighting the whole field. I&#039;m so sorry for being so utterly useless...</description>
		<content:encoded><![CDATA[<p>I tried to post the code again and now the comment isn't here. This is not working. Can I e-mail it to you? Maybe I could give you a link to download the my-custom-user-meta.php file? And then adding to my fluster the comments form won't let me insert my cursor in between text without highlighting the whole field. I'm so sorry for being so utterly useless...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1419</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1419</guid>
		<description>Something went wrong. It&#039;s not even all there! I can&#039;t delete the comment either. I&#039;m so sorry. This is getting flustering. I&#039;ll try again.</description>
		<content:encoded><![CDATA[<p>Something went wrong. It's not even all there! I can't delete the comment either. I'm so sorry. This is getting flustering. I'll try again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1418</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1418</guid>
		<description>This is just the first part. I&#039;ve pulled out the first section to see if a smaller amount of code would post.

[php]    


      
        &lt;i&gt;&lt;/i&gt;
      
      
        
&lt;!--Ability to Multitask --&gt;
        
          
            &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;&quot; id=&quot;abilityToMultitask_1&quot;&gt;
        
        
          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;&quot; id=&quot;abilityToMultitask_2&quot;&gt;
        
        
          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;&quot; id=&quot;abilityToMultitask_3&quot;&gt;
        
        
          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;&quot; id=&quot;abilityToMultitask_4&quot;&gt;
        
        
          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;&quot; id=&quot;abilityToMultitask_5&quot;&gt;
        
      
      
        
          
          
        
        
        
          
          
        
        
        
          
          
        
        
        
          
          
        
        
        
          
          
        
        
      
      
[/php]</description>
		<content:encoded><![CDATA[<p>This is just the first part. I've pulled out the first section to see if a smaller amount of code would post.</p>
<pre class="brush: php;">

        <i></i>

<!--Ability to Multitask -->

            &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;" id="abilityToMultitask_1"&gt;

          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;" id="abilityToMultitask_2"&gt;

          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;" id="abilityToMultitask_3"&gt;

          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;" id="abilityToMultitask_4"&gt;

          &lt;input type=&quot;radio&quot; name=&quot;abilityToMultitask&quot; value=&quot;" id="abilityToMultitask_5"&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1416</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Thu, 22 Oct 2009 18:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1416</guid>
		<description>I&#039;ve tried 3 times and the comment never shows up. I&#039;m starting to think I&#039;m internet code challenged. The code is very long the idea is to make each profile into a resume (with info from the job application) for hiring within the company. I&#039;ll try to see if it&#039;s just too long by posting a bit of us.</description>
		<content:encoded><![CDATA[<p>I've tried 3 times and the comment never shows up. I'm starting to think I'm internet code challenged. The code is very long the idea is to make each profile into a resume (with info from the job application) for hiring within the company. I'll try to see if it's just too long by posting a bit of us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Quinn</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1401</link>
		<dc:creator>Daniel Quinn</dc:creator>
		<pubDate>Thu, 22 Oct 2009 12:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1401</guid>
		<description>Hi Rose - I just installed a syntax highlighter for my comments. Enclose your code in php braces (see the comment form itself for an example) and you will get something like this:

[php]
&lt;?php
echo &quot;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;My test link.&lt;/a&gt;&quot;;
?&gt;
[/php]</description>
		<content:encoded><![CDATA[<p>Hi Rose - I just installed a syntax highlighter for my comments. Enclose your code in php braces (see the comment form itself for an example) and you will get something like this:</p>
<pre class="brush: php;">
&lt;?php
echo &quot;<a href="#" rel="nofollow">My test link.</a>";
?&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/#comment-1386</link>
		<dc:creator>Rose</dc:creator>
		<pubDate>Wed, 21 Oct 2009 18:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dquinn.net/?p=1887#comment-1386</guid>
		<description>Maybe the comments don&#039;t like my code. My reply doesn&#039;t seem to be showing up. Is there another way I can send it to you?</description>
		<content:encoded><![CDATA[<p>Maybe the comments don't like my code. My reply doesn't seem to be showing up. Is there another way I can send it to you?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
