Dynamic shortcode variables not working

New home Forums Basic Version General queries Dynamic shortcode variables not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #58322
    danokorst
    Participant

    I have created a template that calls the shortcode dynamically. Everything seems to work except for the Marker and Zoom parameters. Even when setting these hardcoded in the shortcode, the map still defaults to the settings that were given when creating the map via the Admin UI. Any ideas?

    
    $mapmarker = 809;
    $mapzoom = 7;
    echo do_shortcode("[wpgmza id='". $mapid ."' cat='". $catid ."' marker='". $mapmarker ."' zoom='". $mapzoom ."']");
    
    #58331
    Perry
    Moderator

    Hi there

    Thank you for getting in touch.

    We can confirm this feature is working as intended, so it would appear that there is either an issue with your shortcode syntax, or it’s possible that the marker you are requesting focus on is not visible / has been filtered.

    Are you able to share the URL to your map page with us so we can check that?

    Kind regards
    – Perry

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.