• Resolved marceshleman

    (@marceshleman)


    Hey, we have created our own plugin that connects to our API and pulls in data to a WordPress site.

    Wondering if it is possible to use your plugin to do something like this, and have it create a map.

    <?php echo do_shortcode('[codepeople-post-map name="'.$event->location->name.'" center="'.$event->location->position.'" width="100% height="300"]'); ?>

    $event->location->name = Venue Name;
    $event->location->position = 51.044308,-114.0630914

    You can view our plugin docs here https://github.com/showpass/showpass-wordpress-plugin

    • This topic was modified 7 years, 6 months ago by marceshleman.
Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @marceshleman,

    I’m sorry, but our plugin does not works in that way, the center attribute defines only that, the center of the map, but does not generate any new pin on the map. Our plugin generate the pins on the map based on the points defined in the pages/posts of website.

    However, if your events are posts (defined as a custom post_type), you can associate our plugin with the corresponding post type, and it will display the points associated to the events, or will display the pins for the events with the metadata: geo_latitude, and geo_longitude (that are define too by the WordPress App in IOS and Android)

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic shortcode using data from our API’ is closed to new replies.