I’ve added several s2Member “Custom Fields”.
Now I would like to search users by these fields.
They are stored as a serialized meta. I found this:
http://www.primothemes.com/forums/viewtopic.php?t=15658
Is still this the correct way to search?
I’ve added several s2Member “Custom Fields”.
Now I would like to search users by these fields.
They are stored as a serialized meta. I found this:
http://www.primothemes.com/forums/viewtopic.php?t=15658
Is still this the correct way to search?
Yes, I think this will works.
You don’t say, but if you are using [s2Member-List /]
you can search s2Member Custom Registration Fields using the search-columns
attribute.
To search custom fields use s2member_custom_field_[my unique id]
, where you replace [my unique id]
with the Unique ID that you gave the field when you created it with s2Member. Please be advised that searching Custom Registration/Profile Fields may result in a slower DB query and is not recommended on sites with more than 25,000 users.