Google Maps not displayed on author page

This topic contains 4 reply and 2 voices, and was last updated by david 10 years, 5 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
October 30, 2013 at 10:23 pm 9610
david I need add google maps on author.php. I added the metakey on the registration form but not displayed on the page of the author. I've tried both options: ID, 'meta_key', true ); ?> The code Latitude/Longitude if displayed properly. Example: 41.9306266,2.2547964999999976 Thanks!! David
October 31, 2013 at 12:47 am 9617
Tareq Hasan Tareq Hasan

Try this code, it should work
[php]
$location = get_user_meta( $curauth->ID, ‘meta_key’, true );
wpuf_shortcode_map( $location );
[/php]

October 31, 2013 at 4:01 am 9626
david david

Oh that’s perfect!!!

But, how I put the others parameters: height, width and zoom in your function?
Thanks!!

October 31, 2013 at 1:01 pm 9633
Tareq Hasan Tareq Hasan

[php]
wpuf_shortcode_map( $location, false, array(‘width’ => 450, ‘height’ => 250, ‘zoom’ => 12) );
[/php]

October 31, 2013 at 11:04 pm 9647
david david

Yeaaahh it works!!!
Thanks Tareq!

Viewing 4 Posts - 1 through 4 (of 4 total)