Skip to content

Instantly share code, notes, and snippets.

View paullacey78's full-sized avatar

Paul Lacey paullacey78

View GitHub Profile
@lori
lori / gmaps-shortcode.php
Last active August 2, 2017 11:26
Adds a google map to a post using coordinates from custom fields
<?php
/**
* Google maps shortcode
*
* Adds a google map to a post using coordinates from custom fields
*
* @return string HTML to show a Google map
*/
function bd_map_sc($atts) {