PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Searching by custom fields

s2Member Plugin. A Membership plugin for WordPress®.

Searching by custom fields

Postby danc81 » January 11th, 2012, 1:40 pm

Firstly, great work on S2, it's extremely useful!

Now, I have a site which has a number of custom fields to be entered for various registration levels. Now, I want to display a list of users who have entered certain values into specific fields. I'm currently using a WP_User_Query to list all users, is there a way that I could use WP_User_Query or even a $wpdb->query() to perform a lookup on specific fields?

Thanks.
User avatar
danc81
Registered User
Registered User
 
Posts: 2
Joined: January 11, 2012

Re: Searching by custom fields

Postby Raam Dev » January 12th, 2012, 8:03 pm

Thanks for the KUDOS! :) Glad to hear you're finding the plugin useful!

Please see this thread regarding your questions: viewtopic.php?f=4&t=10099&p=60332#p60332
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Searching by custom fields

Postby danc81 » January 13th, 2012, 4:25 am

Excellent, thanks for pointing me to that thread, the thread linked from the last post seems to have a solution using REGEXP. I'll give that a shot. After some digging around in the database I had come to the conclusion that a Regex of some sort would be the answer.

Thanks.
User avatar
danc81
Registered User
Registered User
 
Posts: 2
Joined: January 11, 2012

Re: Searching by custom fields

Postby Raam Dev » January 13th, 2012, 7:34 pm

You're welcome! :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron