I’m using this code in function.php from a previous post to allow users to get directions from Google Maps:
add_action(‘geodir_after_social_sharing_buttons’ , ‘buttonmap’, 10);
function buttonmap(){
global $post, $wp_query, $preview, $geodirectory;
$postid = $wp_query->post->ID;
$address= geodir_get_post_meta($postid,’post_address’,true); //address
$e_add = str_replace(‘ ‘, ‘+’, $address); // + in space eg road+street+23
$lat= geodir_get_post_meta($postid,’post_latitude’,true); //lat
$lon= geodir_get_post_meta($postid,’post_longitude’,true); //lon
//echo $e_add.$lat.$lon;
echo “Get Directions“;
}
What I’m hoping you can help with is I want to place it just below the business listing address, but not sure what to replace this with to do so:
geodir_after_social_sharing_buttons