How to get individual form field's value?

Home Forums Pie-Register 2.0 Support How to get individual form field's value?

This topic contains 1 reply, has 2 voices, and was last updated by  PIE REGISTER 4 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2600

    MEHEDI HM
    Participant

    How to get individual field’s value and display the value on front-end? For ex: how do I get Profile picture on front end?

    #2606

    PIE REGISTER
    Keymaster

    Hello,

    Here’s how you can do this:
    assuming your profile field id is “pie_profile_pic_6”

    
    	global $current_user;
    	$current_user = wp_get_current_user();
    	$profile_pic = get_user_meta($current_user->ID,"pie_profile_pic_6",true);
    	echo '<img src="'.$profile_pic.'" />';
    

    Hope it helps!

    thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.