Hai, i had one question, how can i do show a user type on profile? For information, i already create 3 user type (User, Company, Enterprise)
What i want just show the user type on user profile.
Example : User Type : Company
I put this code but not work at user-profile.php
<div class="row">
<label for="b_company"><?php _e('User type', 'stela'); ?></label>
<?php if( osc_user_type() =="1" ) echo _e('Company','stela');
if( osc_user_type() =="2" ) echo _e('Enterprise','stela');
else echo _e('User','stela'); ?>
</div>
And this code at hUsers.php
function osc_user_type() {
return (string) osc_user_field("b_company");
}
Can tell me what im wrong and please help me to fix this code.
Thank you