Create maps per post with shortcode?
-
Hi. The plugin I’m currently using for maps is using the Dynamic API. Can I do something like this with your plugin to generate maps per post automatically?
I am pulling the location from a Custom Field in the post. I’d hate to have to stop showing the maps, as we get a lot of positive feedback on them. But all of a sudden, I am being billed $500+ per month!
function location(){ if( is_single() ) { $post_id = get_the_ID(); $location = get_post_meta($post_id, ‘Location’, true); if (!empty($location)) { echo “Location: $location”; echo do_shortcode(“[res_map address=\”$location\” description=\”$location\” icon=\”blue\” pancontrol=\”no\” typecontrol=\”no\” scalecontrol=\”no\” key=\”\” streetcontrol=\”no\” zoom=\”5\” zoomcontrol=\”no\” width=\”100%\” height=\”250px\” maptype=\”terrain\” popup=\”no\” style\”1\” publisherid=\”\” adbg=\”#ffffff\”]”); }
The page I need help with: [log in to see the link]
- The topic ‘Create maps per post with shortcode?’ is closed to new replies.