Skip to content

Instantly share code, notes, and snippets.

@ahmadshah
Created February 17, 2014 14:22
Show Gist options
  • Save ahmadshah/9051460 to your computer and use it in GitHub Desktop.
Save ahmadshah/9051460 to your computer and use it in GitHub Desktop.
WP function
//in function.php file
function getGeolocationData ($foo, $bar) {
// run wp-query here to get the data
}
// call inside template page
<?php echo getGeolocationData('var1', 'var2'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment