Skip Navigation

[Resolved] Trying to display distance from the address entered by user

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 6 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1154854

Tell us what you are trying to do?

When a user selects a distance radius it will return those results. In the return I would like to display the distance from the user.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1155370

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - before I suggest anything here, I would like to clarify something here - do you mean that you want to display the actual distance number for each post of returend result from the distance filter address added to filter?

#1155643

Yes. For example the post returned would state '10miles' for example as that is the distance from the addressed entered by the user.

#1156180

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - what if you try to use following shortcode:

Distance: [toolset-maps-distance-value origin_source='url_param' postmeta='wpcf-{field-name}' unit='mi']

Where:
- Replace {field-name} with your original field name