Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do you list all of the values in a profile field?


r-a-y
Keymaster

@r-a-y

Hey Chris,

I’m assuming you’re using one of the prebuilt fields called “State”.

I didn’t look too closely at the classes or template tags, but check out /buddypress/bp-xprofile/bp-xprofile-classes.php.

There’s a function called “get_prebuilt_field_data()” that might help you out there.

You’d have to pass the CSV file to that function, but that might help…

Another way to output the “State” data would be to parse the actual CSV itself that is used for the data. The CSV can be found in buddypress/bp-xprofile/prebuilt-fields/states.csv.

Hope that helps somewhat!

Skip to toolbar