Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-02T22:52:34-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14284 2011-08-02T22:52:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29700#p29700 <![CDATA[Re: how to list custom registration fields from ALL users?]]>

Statistics: Posted by Cristián Lávaque — August 2nd, 2011, 10:52 pm


]]>
2011-08-02T02:27:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29627#p29627 <![CDATA[Re: how to list custom registration fields from ALL users?]]> Statistics: Posted by nusatsum — August 2nd, 2011, 2:27 am


]]>
2011-08-02T01:27:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29626#p29626 <![CDATA[Re: how to list custom registration fields from ALL users?]]>
Code:
$s2_custom_fields get_user_option('wp_s2member_custom_fields'$user_id); 


:)

Statistics: Posted by Cristián Lávaque — August 2nd, 2011, 1:27 am


]]>
2011-08-01T23:40:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29621#p29621 <![CDATA[Re: how to list custom registration fields from ALL users?]]> Statistics: Posted by nusatsum — August 1st, 2011, 11:40 pm


]]>
2011-08-01T21:56:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29600#p29600 <![CDATA[Re: how to list custom registration fields from ALL users?]]>
You'd have to load the custom fields for every member, put them in an associative array with the custom field as the key so you can sort the array by it, and then loop it.

Or something of the sort depending on the exact use you want. I don't have time to develop it at this moment, but a freelance developer should be able to do it for you.

Statistics: Posted by Cristián Lávaque — August 1st, 2011, 9:56 pm


]]>
2011-08-01T12:44:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29576#p29576 <![CDATA[Re: how to list custom registration fields from ALL users?]]> http://www.primothemes.com/forums/viewtopic.php?f=4&t=6217 ) you recommended using custom registration fields to implement a business directory. I realize now I would have to spend a lot of time understanding the underlying frameworks in order to use this approach. Unless someone could help with a code snippet?

All I need is to list the custom fields for all users in a loop.

Pretty please? :P

Statistics: Posted by nusatsum — August 1st, 2011, 12:44 pm


]]>
2011-07-30T21:44:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29501#p29501 <![CDATA[Re: how to list custom registration fields from ALL users?]]> viewtopic.php?f=4&t=10414

Statistics: Posted by Cristián Lávaque — July 30th, 2011, 9:44 pm


]]>
2011-07-29T21:50:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14284&p=29475#p29475 <![CDATA[how to list custom registration fields from ALL users?]]>
Subscribers have custom registration fields where they can specify the information about their business and manage it in their profile.

I would like to generate a list of all subscriber's business_title's for example.

Where should I begin?

I have looked into get_users (wordpress) but it doesn't return the custom registration fields.

S2member's S2MEMBER_CURRENT_USER_FIELDS is only for the current user. How would I get this for all users that fit a particular criteria (in my case role=subscriber).

Any help would be appreciated.

Statistics: Posted by nusatsum — July 29th, 2011, 9:50 pm


]]>