|Posted: Saturday Jul 6th, 2013 at 4:05 am #53073|
I really like the s2member plugin thanks for that!
Before I’m going to buy the pro version I need to know if and how to get the s2member Custom Fields searchable.
At the moment I’m using the Buddypress plugin BP Search.
Now I would like to create my own search to search the s2member custom fields.
How can I get a User search with s2member custom fields?
I already tried http://www.primothemes.com/forums/viewtopic.php?f=4&t=15658&p=48878#p48878
When I’m using the code like described in the post:
I get the the following output:
WP_User Object ( [data] => stdClass Object ( [ID] => 22 [user_login] => username1 [user_pass] => $D$ZTVBHJ6789VGHBJNKMK. [user_nicename] => username1 [user_email] => firstname.lastname@example.org [user_url] => [user_registered] => 2013-06-27 02:55:06 [user_activation_key] => [user_status] => 0 [display_name] => username1) [ID] => 22 [caps] => Array ( [subscriber] => 1 ) [cap_key] => wp_capabilities [roles] => Array (  => subscriber ) [allcaps] => Array ( [read] => 1 [level_0] => 1 [access_s2member_level0] => 1 [subscriber] => 1 ) [filter] => )
How can I use the code in a search field and how can I use that information and format it properly?
I would like to have for example to search fields:
After searching for one or both of this field I would like to get the Buddypress profiles listed that have this info in their s2member profile fields.
I’m sure other people would be interested in these tips too.
- s2Member® Products