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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 8 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2684296
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". 🙂

#2684347

Minesh
Supporter

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.

#2684457
distance-customizing.png

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.

#2684523

Minesh
Supporter

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.

#2684663

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

#2684892

Minesh
Supporter

Languages: English (English )

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

You can find all View's related shortcodes with the following Doc:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

You can find all the Maps related shortcodes information with the following Doc:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/

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