• Hi Ian and WP Community,

    I need a simple mod for this plugin so that a placemark title can be also assigned as placemark address in the field immediately below for that respective placemark/post.

    I am automatically feeding the placemarks as posts with name-address as title and content, but I couldnt figure out a way to make the address field below extract the address from the placemark/post title.

    The posted address can be exactly the placemark/post title (plus eventually a static name such as city or zipcode)

    Which pieces of code do I need to modify/add?

    Thanks,
    Sly

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

    [ Please do not bump, it’s not permitted here. ]

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

    (@iandunn)

    Check out this sample code. You’ll probably need to modify it a bit, but that’s the basic idea. It hooks into WP’s save_post action after the plugin does it’s normal save routine and sets the address and coordinate fields based on the post title. You can put that in a functionality plugin or your theme’s functions.php.

    Thread Starter slider37

    (@slider37)

    Tried that code and it doesn’t work.

    The only think that I get is the placemark thumbnails stacked in the top left corner of the map, but no location pins showing.

    Here’s how my Placemarks list looks like:
    http://img85.imageshack.us/img85/9496/placemarks.jpg

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] Post Title as Placemark address?’ is closed to new replies.