how to output raw phone value in template file / php?
-
$arg_street = array( 'post_id' => get_the_ID(), 'fields' => 'street', 'separator' => '' ); $location_street = gmw_get_post_address( $arg_street );
I have been using this code above to output the “raw” street value, but I’m having a hard time trying to get the phone value. This is what I tried:
$arg_phone = array( 'post_id' => get_the_ID(), 'fields' => 'phone', 'separator' => '' ); $location_phone = gmw_get_post_location_meta( $arg_phone );
What should I change?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how to output raw phone value in template file / php?’ is closed to new replies.