I want to know if it's possible to show places (uitstapjes in de buurt) nearby my Properties on a map.
For example, I have a propertie 'Huisje in Ter Apel' in Ter Apel and I want to show everything within a certain radius around the map like 'Museum Klooster Ter Apel'.
Is that the requirement for you is when you display a single post 'Huisje in Ter Apel' on frontend on single post you want to display the related posts that falls nearby address which is hold by the post 'Huisje in Ter Apel' with custom field address value.
That means you want to display other posts on map that is near by the current post's address field value - is that correct? If yes, to display posts related to the address hold by current post's custom address field, you will have to add distance search with fixed address and later you can use the view's hook "wpv_view_settings" to pass the address field value of current post.
That means you want to display other posts on map that is near by the current post's address field value - is that correct? If yes, to display posts related to the address hold by current post's custom address field, you will have to add distance search with fixed address and later you can use the view's hook "wpv_view_settings" to pass the address field value of current post.
Yes this is correct. So this is dynamic for every post? Can you show me how to to it? My PHP knowledge is not that good.
Where do I add the add distance search with fixed address, do I have to create a new view and add it here?
If you can share problem URL where you want to display the map and based on what field I'm happy to setup for you,
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I see you shared reference URLs that belongs to another domain: hidden link
The access details you shared is belongs to domain: hidden link
So, on the domain for which you shared access details ( hidden link) on what post/page you would like to configure the distance search and compare to what field you want to display places near by.
It seems that what you want is, when we are on single post page: hidden link
- We need to take the address field value of above post "huisje-in-ter-apel-3" that is "Ter Apel, Groningen, Nederland"
- Based on that address field value "Ter Apel, Groningen, Nederland", we need to find the near by post within the post type "uitstapjes"
- We need to take the address field value of above post "huisje-in-ter-apel-3" that is "Ter Apel, Groningen, Nederland"
- Based on that address field value "Ter Apel, Groningen, Nederland", we need to find the near by post within the post type "uitstapjes"
Yes that is correct.
And for hidden link
- You need to take the address field value of above post "Groepsaccommodatie Klonie Ellertshaar" that is "Ellertsweg 4, 9535 TA Ellertshaar"
- Based on that address field value "Ellertsweg 4, 9535 TA Ellertshaar", we need to find the near by post within the post type "Huisjes huren
Yes I want to use the map that show 'Huisje in Ter Apel' and the show the 'uitstapjes' near by address belongs to current post address on the map and a image and title below. See image that I uploaded.
I've created the following view:
=> hidden link
Where:
- I've added the Distance query filter (you can modify the distance radius by editing the query filter, currently its set to 50km, so the posts belongs to post type 'uitstapjes' that should fall within the radius of 50km will be displyed. ):
Distance
Show posts within 50km radius of address/coordinates provided using mapcenter shortcode attribute.
In the loop output I've also added the distance value so you can see the distance difference from the current post address to the 'uitstapjes' post address field:
I already show you the way how to do it. Would you mind to take a chance to build it on your own that way you will know how to do it. If you need help I'm here.
Could you please share admin access details as when you resolve the ticket the shared admin access private details will be automatically removed.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.