array( \'lat_field\' => \'_latitude\', // this is the name of the meta field storing latitude \'lng_field\' => \'_longitude\', // this is the name of the meta field storing longitude \'latitude\' => 48.866667, // this is the latitude of the point we are getting distance from \'longitude\' => 2.333333, // this is the longitude of the point we are getting distance from \'distance\' => 20, // this is the maximum distance to search \'units\' => \'miles\' // this supports options: miles, mi, kilometers, km ), \'orderby\' => \'distance\', // this tells WP Query to sort by distance \'order\' => \'ASC\' ));
3, )); ?> have_posts() ) : ?> have_posts() ) : $the_query->the_post(); ?>