Echo styles into the mashup of a google map and wordpress custom fields
- by zac
Using wordpress, I am pulling in a custom fields from specific posts to fill in the content for a google generated map. I am using this code
var point = new GLatLng(48.5139,-123.150531);
var marker = createMarker(point,"Lime Kiln State Park",
'<?php $post_id = 182;
$my_post = get_post($post_id);
$title = $my_post->post_title;
$snip…