Skip Navigation

[Resolved] With [wpv-control-distance] filter, how do I customize "Show results within"?

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 5 replies, has 2 voices.

Last updated by Minesh 1 month, 4 weeks ago.

Assisted by: Minesh.

Screen Shot 2024-02-20 at 11.50.39 AM.png

I'm using a map with a [wpv-control-distance] filter which outputs something like:

Show results within ____ km of ____ [use my location]

How do I customize the "Show results within" text? My map is showing teachers, not "results". 🙂



Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

If you edit your view (assuming you are using classic view) with the "Search and Pagination" section of your view where you will find the shortcode: [wpv-control-distance]

With above shortcode you should try to locate the attribute: inputs_placeholder="Show results within %%CENTER%%"

You can change your text as required with this "inputs_placeholder" attribute.


Hello, thanks for the start but this isn't quite right. Here's my original shortcode:

[wpv-control-distance distance_unit_url_param="toolset_maps_distance_unit" distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="listing-location" default_distance="200"]

if I add the inputs_placeholder="Show teachers within %%CENTER%%" parameter it adjusts the label before the filter, but it removes the distance selector. See attached.

All I want to do is customize the label preceding the filter.



Languages: English (English )

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

Can you please try to use the following attribute: inputs_placeholder="Show teachers within %%DISTANCE%% of %%CENTER%%"

For example:

[wpv-control-distance distance_unit_url_param="toolset_maps_distance_unit" distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="listing-location" default_distance="200" inputs_placeholder="Show teachers within %%DISTANCE%% of %%CENTER%%"]

I hope the above solution will help you to fix the issue.


Thanks, this worked great. Is there documentation somewhere that describes these %%parameters%% (and possibly others?)



Languages: English (English )

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

You can find all View's related shortcodes with the following Doc:

You can find all the Maps related shortcodes information with the following Doc:

I will raise a request to add the [wpv-control-distance] to the relevant doc. Thank you for pointing out.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.