Reply To: Call Xprofile Field Data into Appointments+ notification email
So what you do is create a shortcode similar to what you did for the profile pages but it’s within the appointments+ files. I can adjust the code to create the shortcode USER_PHONEr . Here is an example of custom code for a drop down on profile that was included into email templates
if($r->travel_type==2){
$address=$r->address;
$travel_type=”Photographer Travel to Me”;
} else {
$sql = “SELECT * FROM wppl_friends_locator where member_id=”.$r->worker;
$squad=$wpdb->get_results( $sql );
if($squad){
$address=$squad[0]->formatted_address;
}
else{
$address=””;
}
$travel_type=”Travel to Photographer”;
}
but instead of all the travel type and address stuff I need to call the xprofile fields database then find id 206 and display that info.
Thank You