Navigation überspringen

[Gelöst] Split: Search by location doesnt work in some ocasions – connditional content display issue

This support ticket is created vor 10 Monaten, 3 Wochen. 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)

Dieses Thema enthält 7 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von zeljko-turkaljS vor 10 Monaten, 2 Wochen.

Assistiert von: Minesh.

Author
Artikel
#2681010

Hi Minesh, I completely understand, I will try to somehow restrict the key or at least change it on monthly basis.

I have another question / request, maybe not related to this topic. Please let me know if we need to open a new ticket.

On this page (versteckter Link), we have a search form and map which is initially hidden. The reason it is hidden is that we wanted to hide all results initially. I used this code in view loop editor:

[wpv-conditional if="( '[wpv-search-term param="wpv_view_count"]' ne '' )"]
[wpv-map-render map_id="bbfmls" map_height="500px" spiderfy="on" street_view="off" marker_id="street-view"][/wpv-map-render]

...

[/wpv-conditional]

After we showcased this to client, comment was can we have a map initially without results and then when we change any filter values to show the same map with results.

Please let me know if that is possible

Thanks in advance

#2681019

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know what default location you want to display when page is loaded first time?

#2681039

It should be Florida, USA

versteckter Link

#2681371

Minesh
Supporter

Sprachen: Englisch (English )

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

What if you pass the attributes "general_center_lat" and "general_center_lon" to [wpv-map-render] shortcode.


general_center_lat and general_center_lon. Optional, coordinates for the map center when fitbounds is set to off. It takes valid latitude and longitude values: a latitude between -85 and 85, excluded, and a longitude between -180 and 180, included. Those numbers come from rstrictions from the Google Maps API

More info:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

Does that help?

#2681448

Hi Minesh, not sure if I understand what you mean. Will this addition help us to have map on this page before we change any filter value in search form?

versteckter Link

If needed, we can create again temp access to site, just please mark my next reply as private

Please let me know

#2681762

Minesh
Supporter

Sprachen: Englisch (English )

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

Can you please send me auto-login link so that I can login to your site and check whats going wrong with your setup.

I have set the next reply to private which means only you and I have access to it.

#2682027

Minesh
Supporter

Sprachen: Englisch (English )

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

Can you please check now: versteckter Link

With your view:
- versteckter Link

I've added the map render shortcode outside the conditional statement you added:

[wpv-map-render map_id="bbfmls" map_height="500px" spiderfy="on" street_view="off"  general_center_lat="27.994402" general_center_lon="-81.760254" marker_id="street-view"][/wpv-map-render]

Where:
I've pass the attributes "general_center_lat" and "general_center_lon" to [wpv-map-render] shortcode with Florida lat and lon. YOu can adjust the lat and lon value as required.

Can you please confirm it works as expected.

#2682030

Minesh, this is perfect! Thanks.

I added additional attribute " general_zoom="6" ". Wanted to have a Florida a bit more centered.

Thanks for all your hard work and support, much appreciate

Regards
Sasa Vidakovic
Deal Studio