Created
February 17, 2014 14:22
-
-
Save ahmadshah/9051460 to your computer and use it in GitHub Desktop.
WP function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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