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.

Export User Custom Fields

Home Forums Community Forum Export User Custom Fields

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 7 months ago.

Topic Author Topic
Posted: Friday Jun 1st, 2012 at 9:15 am #15160
MoDigital
Username: uknswp

When I export user data from s2Pro the custom fields are not in any kind of order. If I need to get a list of customer address’, I can’t, other than manually selecting each address from the spreadsheet one at a time. Is there any known workaround for this? Ideally the address’ should be stored in their own column, not randomly distributed throughout the spreadsheet.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Friday Jun 1st, 2012 at 10:25 pm #15225

Yes, that’s the way the current export tool exports the s2Member custom fields. It only exports the fields that have a value and it does it in pairs of field name and field value, it doesn’t have a specific column for each field.

This will change in the new s2Member we’re developing, to give each field a column.

Posted: Saturday Jun 2nd, 2012 at 6:12 am #15247
MoDigital
Username: uknswp

Thanks for your response Cristián.

I figured in the meantime I could create a WordPress page template to pull out the fields I need. Something like:

foreach (get_users ("role=s2member_level2") as $user) {
		$user = new WP_User ($user->ID);
		echo "<p>".get_user_field ("myCustomField", $user->ID)."</p>";
	}
	
Posted: Sunday Jun 3rd, 2012 at 9:50 pm #15300

Ah, that’s cool. :)

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.