Hello, you can use the following code to display the get directions in the sidebar
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";
}
this will go after the sharing buttons on the right, put the code in the functions.php inside your child theme’s folder