Skip to content

Instantly share code, notes, and snippets.

@sudar
Created May 10, 2011 15:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sudar/964667 to your computer and use it in GitHub Desktop.
<?php
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
echo get_posts_by_tag("{$geoplugin->city},$geoplugin->region}", 5);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment