Home Forums Plugin Support WP User Frontend Pro Google Maps not displayed on author page

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  david 5 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9610

    david
    Participant
    Post count: 40

    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:
    < ?php echo get_the_author_meta('meta_key'); ?>
    < ?php echo get_user_meta( $curauth->ID, ‘meta_key', true ); ?>

    The code Latitude/Longitude if displayed properly.
    Example:
    41.9306266,2.2547964999999976

    Thanks!!
    David

    #9617

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #9626

    david
    Participant
    Post count: 40

    Oh that's perfect!!!

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

    #9633

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #9647

    david
    Participant
    Post count: 40

    Yeaaahh it works!!!
    Thanks Tareq!

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

The topic ‘Google Maps not displayed on author page’ is closed to new replies.