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: Mutual Designs

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


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Show Custom Fields

By:  ben h in: Community Forum

voices: 4
replies: 5

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

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday Sep 11th, 2012 at 10:23 pm #24957

[member_certification] => Array ( [0] => RM )

Didn’t realize the key I was trying to echo was inside a multidimensional array. Still a newbie. Print_r helped me do a search for the answer. For any other newbies, to echo this, you need to do the following:

<?php $fields = json_decode(S2MEMBER_CURRENT_USER_FIELDS, true); ?>
<?php echo $fields['member_certification']['0']; ?>		

This looks inside the member_certification key for the key that holds the value RM.

Thanks!

Posted: Sunday Sep 9th, 2012 at 12:45 am #24677

I’m using the code outline in the page you included in this topic and I’m still having issues displaying a custom field because it’s a multi-select field. Any solutions for this? The only output I get is “Array”

Viewing 2 replies - 1 through 2 (of 2 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.