Support » Plugin: Basic Google Maps Placemarks » [Plugin: Basic Google Maps Placemarks] Placemark page with just one placemark?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    You could create a category, assign only that particular post to the category, and then add the category parameter to the [bgmp-map] shortcode. See the Installation page for details on using the category shortcode arguments.

    You could also use the `bgmp_get-placemarks-query’ filter to modify the query arguments when the posts are pulled. e.g,

    function foo( $query )
    {
      if( is_page( 12 ) )
        $query[ 'id' ] = 123;
    }
    add_filter( 'bgmp_get-placemarks-query', 'foo' );

    That would make placemark ID #123 the only one to show up if the current page were ID #12. I haven’t tested that code, so you may need to refine it, but that’s the basic idea.

    Ah cool, thanks, I ened up just hacking and rewriting the plugin. I added a click to the placemark page on the marker popups as well. It’s great that there are placemark pages but why not have the option to link to them from the map?

    Now if only I can figure out how to get the clustering issue resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Basic Google Maps Placemarks] Placemark page with just one placemark?’ is closed to new replies.