Google map in widget?

This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 11 years, 5 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
June 28, 2013 at 11:05 am 5375
Tareq Hasan This might no be an issue related to the plugin but, do you know how to show the pronamic map in widgets? I have tryed to add <?php echo wpuf_shortcode_map( 'location', $post->ID ); ?> (php allowed in widget already) bu doesn't work in this way
June 28, 2013 at 1:20 pm 5382
Tareq Hasan Tareq Hasan

May be you should try this:
[php]
<?php
global $post;
wpuf_shortcode_map( ‘location’, $post->ID );
?>
[/php]

June 28, 2013 at 2:43 pm 5386
onafets onafets

Thank you, Tareq. I have tested but it doesn’t fetch the map

June 28, 2013 at 3:07 pm 5388
Tareq Hasan Tareq Hasan

It should be working, but if any plugin changes the global $post variable, it’ll not be possible to get the map working on the widget. You’ll need the post ID correctly to fetch the map.

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