Hi Support
We have created custom filed “business_type” using option “Members->Members fields” in c panel.
We are trying to achieve this fileds value using code in template file :
{exp:member:custom_profile_data}
{business_type}
{/exp:member:custom_profile_data}
But it’s not returning any value it’s just displaying as a string “{business_type}” in front end.
Note: We have installed MSM(multiple site manager) in our site
Please check and advise
Thanks
We have solved this issue using snippet, created a snippet name “b_type” and added the code below:
{exp:member:custom_profile_data}
{exp:query sql="SELECT md.m_field_id_1 AS business_type FROM exp_member_data AS md WHERE md.member_id = '{member_id}'" }{business_type}{/exp:query}
{/exp:member:custom_profile_data}
We have call this snippet in template file and get the value 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.