I want to sort wordpress posts by user's distance from posts location and by date by using some calculation..Here is the formula.

2*log(distance) - log(time in seconds)

I saved post's latitude and longitude position as custom field (not ACF) I got users latitude and longitude as COOKIE

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.