Strata & Commercial Landscape Maintenance
info@lawncareplus.ca
Mon-Sat: 07:00 - 17:00

COPY AND PASTE THE FOLLOWING TO: PLUGINS/EDITOR/PROFILE BUILDER PRO/INDEX:::::

function wppb_display_logged_in_user_meta( $atts ){

extract( shortcode_atts( array( ‘meta_name’ => ” ), $atts ) );

/* get current logged in user id */
$user_ID = get_current_user_id();
if( $user_ID != 0 ){
$my_meta = get_user_meta( $user_ID, $meta_name, true );
}

if( !empty( $my_meta ) ){
return ”. $my_meta .”;
}
else
return “”;
}
add_shortcode( ‘wppb-current-user-meta’, ‘wppb_display_logged_in_user_meta’ );