[Resolved] show toolset-maps-distance-value conditionaly
This support ticket is created 3 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.
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.
I want to show the distance only when there is a location from a custom field. So I was trying to use the [wpv-conditional] but I can't get it to show. Not using the conditional it works fine. But I want to hide it when the distance value is empty.
This is the code I tried.
Hi Shane,
Thank you.
Unfortunatly that will not work as the member_address field is never empty as this is the address field for maps.
So I need a way to check if the toolset-maps-distance-value is set or not. Or to see if the location filter (form field: toolset-maps-distance-center) is populated...
Thank you Shane.
That pointed me to the right solution.
I am now using [wpv-conditional if="('[wpv-search-term param="toolset_maps_distance_center"]' ne '')"] and that works fine!