Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-13T20:15:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14971 2011-09-13T20:15:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14971&p=35922#p35922 <![CDATA[Re: Getting current user data wp_s2member_custom_fields]]> Statistics: Posted by Bruce C — September 13th, 2011, 8:15 pm


]]>
2011-09-13T18:09:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14971&p=35911#p35911 <![CDATA[Re: Getting current user data wp_s2member_custom_fields]]>
$replace_zip=$current_user->wp_s2member_custom_fields[zip];

I had an array with 3 custom fields in wp_s2member_custom_fields

Statistics: Posted by Charles91 — September 13th, 2011, 6:09 pm


]]>
2011-09-12T19:31:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14971&p=34640#p34640 <![CDATA[Re: Getting current user data wp_s2member_custom_fields]]> [s2Get user_field="" /] to do this.

Is that what you're looking for?

Statistics: Posted by Bruce C — September 12th, 2011, 7:31 pm


]]>
2011-09-11T20:27:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14971&p=34570#p34570 <![CDATA[Getting current user data wp_s2member_custom_fields]]>
<?php
global $current_user;
get_currentuserinfo();
$replace=$current_user->zip;
echo "$replace";
?>

I have installed s2Member and want to use it for my registration on my site, but it places the zip in a field called wp_s2member_custom_fields, with several of the custom fields, instead of placing it in a field by itself, is there a way I can extract the zip code from this field and use it as the current user zip. Or if not is there a way I can force it to place the zip in a single field, like it does first name and last name. I use the "$replace", in another plugin called Hungryfeed to display a RSS feed based on the zipcode of the user that is logged in.

Statistics: Posted by Charles91 — September 11th, 2011, 8:27 pm


]]>