As a follow-up to this ticket https://toolset.com/forums/topic/custom-search-in-map-view/ I am trying to customize the marker popups.
In the view's loop, I have replaced the custom HTML block with a shortcode block, display the map shortcodes like this:
[wpv-conditional if="(has_term('woongroep', 'stadium', null) eq '1')"]
[wpv-map-marker map_id="map-1" marker_icon="versteckter Link" marker_id="marker-[wpv-post-id]" marker_field="wpcf-adres-woongroep"]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]
[wpv-conditional if="(has_term('initiatiefgroep', 'stadium', null) eq '1')"]
[wpv-map-marker map_id="map-1" marker_icon="versteckter Link" marker_id='marker-[wpv-post-id]' marker_field="wpcf-adres-woongroep"]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]
In the marker popup, I would like to display the post title with a link and some custom fields (text fields and an image field) and taxonomy terms.
See the example in the screenshot (however, the screenshot does not have the image field).
Link to the site:
versteckter Link
password: lvgo2023

Minesh
Unterstützer
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
When I load the problem URL you shared: versteckter Link
I can see very few markers on the map and when I click on the map I can see only post title with link. Do you added the custom fields to the staging site's popup marker as well?
As with the code you shared:
[wpv-conditional if="(has_term('initiatiefgroep', 'stadium', null) eq '1')"]
[wpv-map-marker map_id="map-1" marker_icon="<em><u>versteckter Link</u></em>" marker_id='marker-[wpv-post-id]' marker_field="wpcf-adres-woongroep"]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]
I can see you added only [wpv-post-link] shortcode. How are you displaying the custom fields?
Can you please share all those required details and what custom fields you want to display with marker popup and share admin access details.
*** 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.
What if you try to add the "Fields and Text" block instead of using the "shortcodes" block where you added the marker shortcodes you shared.
Instead add the "Fields and Text" block and then switch to the "HTML" mode and then use view's button available with this block to add your desired custom fields and taxonomies within the marker shortcode.
Please check the following screenshot:
- versteckter Link
That is an excellent suggestion. I tried it out and it works.
You can view the results here: versteckter Link
(password: lvgo2023)
Thank you!
Glad to know that solution I shared help you to resolve your issue.
You are welcome to mark this ticket resolved.
I tried twice to mark this issue as resolved (clicked in My issue is resolved and filled in all the fields) but the button Submit does not seem to work!
Please add different message like "This issue is really resolved now." and then try to click on submit button and then check, if that does not work I will mark the ticket resolved from this end.
Did not work... Pls mark as resolved. Many thanks Minesh!
This issue is resolved by user.