WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] Placemark page with just one placemark? (3 posts)

  1. consumedesign
    Member
    Posted 2 years ago #

    Is it possible to just use an ID to allow placement of just one placemark? I would like to show the spot on a separate map within the placemark page. I'm going to try and hack it but if anyone has any quick solutions for it let me know.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. consumedesign
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic