[s2Get user_field="my_field" /] stopped working

Hello,

I am new to s2 member (pro), I generally like it. I have just upgraded to v241216 (Framework and Pro) from v241114 (Framework and Pro) and none of my [s2Get user_field=“my_field” /] short codes now work? Anyone else have this problem?

Thanks in advance,
Rob

Thanks for reporting that, Rob!

I’ll take a look at it to fix it in the next release. You can use the previous version in the meantime if you want.

:slight_smile:

yes, this has stopped for me as well.

Till it gets properly fixed this does the same job

function s2GetPro_shortcode($atts) {
	$atts = shortcode_atts(array(
		'user_field' => ''
	), $atts);

	$user_id = get_current_user_id();
	$custom_fields = get_user_option('s2member_custom_fields', $user_id);

	return $custom_fields[$atts['user_field']];
}
add_shortcode('s2GetPro', 's2GetPro_shortcode');
1 Like

I sent you a few private messages during the past couple of months but I am unsure if you’re reading them.

I was unable to email you as well.

Just letting you know in case you’re unaware.

If I don’t get an answer I will assume it’s intentional and I won’t waste my time here.

1 Like

Hi Sim! Wasn’t intentional. I’ll look for them now.

1 Like

Nice, Gerard. :slight_smile:

I’ll improve this in the next release.

1 Like