Skip Navigation

[Resolved] Display a custom search with geolocation

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to display a custom search View, a map, markers and text results, with a distance filter.

Solution:
Use the Search and Pagination editor to add a distance filter, and add extra text in the loop using the Fields and Views button to insert shortcodes.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/

This support ticket is created 6 years, 2 months 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by bricoutS-2 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1152110

Hello,

I have read many articles and explanations.
I have managed to create 2 different custom types, and relation ship and to display them.
But I don't understand how to make a custom search with geolocation

We want
> on the home page a search box to put the address
and to display below the related agencies and if possible, also, the consultants linked to these agencies
Both are created as custom types and populated with address field.
> on the agencies page
a map with all agencies and the possibility to filter by geolocation entered by the user.

I followed all the step by step guides but I do not manage to do that.

The site is built with WP/OceanPro/ElementorPro
I have installed Toolset Map & google API

You can view the site still in construction here
- private -

Thank you very much in advance for your help,
Kind regards
Marie

#1152655

Hi, I was able to log in but my User account does not have access to the Toolset menu so I cannot check the settings for your Views. Can you give me a higher access level in wp-admin? I am removing the login credentials from public view here.

#1152661

Hello
Thank you for looking at it,
I have put your user as contributor, I hope it is enough.

In the meantime, we have managed to show all agencies on one page "nos agences" but
> we do not know how to display all results below and to filter when user fills his location
and still
> on the home page how to display the search box to put the address
and to display below the related agencies and if possible, also, the consultants linked to these agencies

Thank you very much for your help
Kind regards
Marie

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/display-related-posts-in-a-custom-search-view-filtered-by-distance/

#1153178

No, unfortunately a Contributor is not able to access the Toolset menu to check View settings. An administrator role is best.

we do not know how to display all results below
and still

To display results below the map, add content in the View loop using the Fields and Views button like this:

<wpv-loop>
[wpv-map-marker map_id="map-6" marker_id="marker-6" marker_field="wpcf-property-address"][/wpv-map-marker]
[wpv-post-link]<br />
[wpv-post-status]<br />
... etc ...
</wpv-loop>

and to filter when user fills his location
In the View editor, find the "Search and Pagination" editor panel. If you cannot see it, scroll to the top right corner and click "Screen Options" to activate the Search and Pagination editor. Place your cursor in the editor and click "Add filter" to add a distance filter. More information about distance filtering: https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#filtering-markers-by-distance

on the home page how to display the search box to put the address...and to display below the related agencies and if possible, also, the consultants linked to these agencies
Let's keep this ticket focused on the agencies page: hidden link
I will split these other questions into a separate ticket. We have a one topic per ticket support policy to help keep things organized.

#1158671

Thank you very much for helping us setting the website. Your help was very helpful. We still have room for improvement but the first steps are good. Thank you.