Home Forums Plugin Support WP User Frontend (Free Version) Google map in widget?

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5375

    onafets
    Participant
    Post count: 30

    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

    #5382

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5386

    onafets
    Participant
    Post count: 30

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

    #5388

    Tareq Hasan
    Keymaster
    Post count: 2831

    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 4 posts - 1 through 4 (of 4 total)

The topic ‘Google map in widget?’ is closed to new replies.