You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting 404 error. How do i get this to work correctly? Am I doing something incorrect? See images attached for details. please Help!!
function filter_queryby_currentcity( $query ) {
if ( !is_admin() )
{
getGeoipDetails();
//print_r("filter:".trim(getGeoipDetails()["city"]));
// print_r("IP Based geo details".microtime(true).":".$GLOBALS["location_details"]["geolat"]);
$query->set( "geo_query", [
"lat" => $GLOBALS["location_details"]["geolat"], // Latitude point
"lng" => $GLOBALS["location_details"]["geolong"], // Longitude point
"lat_meta_key" => "_tmbu_lat", // Meta-key for the latitude data
"lng_meta_key" => "_tmbu_lng", // Meta-key for the longitude data
"radius" => 50, // Find locations within a given radius (km)
"order" => "DESC", // Order by distance
"distance_unit" => 111.045, // Default distance unit (km per degree). Use 69.0 for statute miles per degree.
"context" => "\\Birgir\\Geo\\GeoQueryHaversine" // Default implementation, you can use your own here instead.
]);
The text was updated successfully, but these errors were encountered:
I am getting 404 error. How do i get this to work correctly? Am I doing something incorrect? See images attached for details. please Help!!
function filter_queryby_currentcity( $query ) {
if ( !is_admin() )
{
getGeoipDetails();
//print_r("filter:".trim(getGeoipDetails()["city"]));
// print_r("IP Based geo details".microtime(true).":".$GLOBALS["location_details"]["geolat"]);
]);
The text was updated successfully, but these errors were encountered: