Home Forums Plugin Support WP User Frontend Pro Help to add Google Maps on a single post

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  ivaxtobac 6 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1667

    aldlall
    Participant
    Post count: 5

    How to embed Google Maps into single post with custom fields ?

    #1669

    Tareq Hasan
    Keymaster
    Post count: 2831

    Use this shortcode: [wpuf-meta name="meta_key_name" type="map"]

    #1677

    aldlall
    Participant
    Post count: 5

    How do I add in single.php file ?

    #1679

    Tareq Hasan
    Keymaster
    Post count: 2831

    If you are looking for a code, here it is:
    [html]<?php wpuf_shortcode_map( ‘meta_key_name', $post->ID ); ?>[/html]

    #3675

    ivaxtobac
    Participant
    Post count: 35

    Hello, Can I fix custom height and weight on map?

    Thanks

    #3679

    Tareq Hasan
    Keymaster
    Post count: 2831

    From the docs:
    [wpuf-meta name="meta_key_name" type="map" height="250" width="450" zoom="12"]

    If you like to use the php version:
    [php]wpuf_shortcode_map( ‘meta_key', $post->ID, array( ‘width' => 600, ‘height' => 500, ‘zoom' => 15 ) );[/php]

    #3688

    ivaxtobac
    Participant
    Post count: 35

    Thanks Tareq

    I search on docs and i can not find

    Regards

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Help to add Google Maps on a single post’ is closed to new replies.