latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Joe Traversa

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Invisible, uneditable auto-inc fiel

By:  Joe Traversa in: Community Forum

voices: 4
replies: 8

4 years, 10 months ago  Cristián Lávaque

Retrieve the highest value of a Custom Field

By:  Joe Traversa in: Community Forum

voices: 2
replies: 3

4 years, 10 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Invisible, uneditable auto-inc fiel

By:  Joe Traversa in: Community Forum

voices: 4
replies: 8

4 years, 10 months ago  Cristián Lávaque

Retrieve the highest value of a Custom Field

By:  Joe Traversa in: Community Forum

voices: 2
replies: 3

4 years, 10 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Saturday Feb 25th, 2012 at 1:45 pm #6413

Hey Cristian,

The WordPress userID would, except that we already have about 400 existing users with business IDs assigned.

Posted: Friday Feb 24th, 2012 at 8:45 pm #6370

Hi Cristian,

I appreciate the link – I actually had a look at this post, but Jason seems to be showing how to retrieve userIDs that have a particular meta value – I actually want to retrieve all the meta-values (business_id) of a particular key _ s2member_custom_field

and find the highest (greatest) one. Any thoughts?

Posted: Thursday Feb 23rd, 2012 at 4:14 pm #6175

Hi Jason,

I also wanted to say that I was hoping to utilize the s2member import function b/c we have a list of 400 users with these \”businessID\” numbers assigned.

Ideally I would like to import this list (with the businessID) value using s2member import function (w/ custom profile fields). After doing this, could I insert a function to assign an incremented value to this during the registration of new users?

Posted: Thursday Feb 23rd, 2012 at 1:08 pm #6133

Hey Jason,

Thank you for your response. Would I also create the \”businessID\” field as a S2Member custom profile field? Or, would I just be working directly with the WP custom meta fields?

Also, I am kind of new to hooks/filters – would I be using them to input the meta data at the appropriate time during registration?

It seems to me that when a user registers, I would need to run a query that would search all users and extract the highest \”businessID\”. Then it would increment this by 1 and assign this new value to the user who is registering by assigning a customer meta field to their userID. Is this logic sound? Can you please tell me how I would do this? Which hooks/filters?

Thank you!

Posted: Friday Feb 17th, 2012 at 10:17 pm #5559

Hi Raam, where do I tell the php code to store the value in the database? Where is the custom field stored in the database and in which table?

Viewing 5 replies - 1 through 5 (of 5 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.