How do I get the value of a current user’s custom field?

Add this to the frontend and you should be able to adjust it to display whatever field you’ve added. $user_info = get_userdata(get_current_user_id()); echo ‘Username: ‘ . $user_info->user_login . “<br>”; echo ‘User roles: ‘ . implode(‘, ‘, $user_info->roles) . “<br>”; echo ‘User ID: ‘ . $user_info->ID . “<br>”; echo ‘User Agent Department: ‘ . $user_info->agentdept . … Read more

How to pass multiple custom fields as shortcode’s parameters

You can do this several different ways. Need to know how you are passing the 1 custom field in your current shortcode. It seems like you might be doing it like this: [your_short_code price=”how_are_you_setting_this”] if this is the case then you can just add more attributes like this: [your_short_code price=”how_are_you_setting_this” next_field=”set_this_field”] // From your code … Read more