Problem:
I want to display distance in search results with the new [toolset-maps-distance] shortcode using the url parameter from the search and the address field from the results.
Solution:
You use shortcode [wpv-conditional] shortcode to check if the distance shortcode's value isn't empty, then display the content, for example:
https://toolset.com/forums/topic/need-conditional-display-of-distance/#post-1151132
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9: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/Hong_Kong (GMT+08:00)
Ce sujet contient 4 réponses, a 2 voix.
Dernière mise à jour par Il y a 6 années et 3 mois.
Assisté par: Luo Yang.