Okay I was able to log in using these credentials, thank you for the update. If I understand correctly, you would like to show a list of Products in the custom search View results. In the map above the Products results, you would like to show markers corresponding to each Product in the results, but the address field holding the location for the marker - with the field slug "partner-address" - is stored in a related Partners&Venues post. The relationship between Products and Partners&Venues is a one-to-many relationship called "Film Screening Venues" where the parent is Partners&Venues and the child is Products. So to sum up, the address of the marker for each Product is contained in its parent Partners&Venues post custom field "partner-address".
For example, considering this Product "The 8th x Aberystwyth Arts Centre":
hidden link
The Product post is editable here in wp-admin:
hidden link
The related parent Partners&Venue is "Aberystwyth Arts Centre":
hidden link
That Partners&Venues post is editable here in wp-admin:
hidden link
The partner-address field value in the Partners&Venues post is "Aberystwyth Arts Centre, Aberystwyth, Ceredigion SY23 3DE, UK", so the marker for The 8th x Aberystwyth Arts Centre should be shown there in the results map. If I've misunderstood any of that so far, please let me know.
I'm a bit unclear about how this page is set up. I can see a View "List of Screening Venues (this film)" is included at the top of the page, but that View produces no results and no filters are displayed. Maybe you're still working on this section? As of right now it seems redundant, so the solution I'm talking about below should all be implemented in the Film Screenings View.
It looks like you've tried to configure the map block to display markers coming from one of the Product Views. The problem is that the address field you want to use for the marker is not stored in Product posts, so the marker is not displayed as expected. If you had the ability to choose a field from a related post for the marker's dynamic source, that would help here, but this feature is not currently available. The marker dynamic sources feature will only allow access to the fields directly in the result posts. What you need here is the ability to access address field values in related posts, and in this case a marker shortcode workaround is required. Unfortunately you will not be able to create your marker using the Toolset Map Blocks design features, but I can help you set up the marker using our shortcode system instead.
- Edit this Page and select the Map block. I can see there are already two markers configured here. Unless you are using this View in other pages on the site, you can delete the existing marker settings as they will be redundant. The new marker we create will exist a shortcode, not as a marker panel here in the sidebar.
- Next we will add a marker to each item in the main search results View by adding a map marker shortcode. Edit the loop in the results and insert a custom HTML block anywhere inside the View Loop Block. The marker shortcode will not appear in the results list, it will only register a marker in the map for each item in the results. Add the following map marker shortcode in the custom HTML block:
[wpv-map-marker map_id='map-7' marker_id='marker-partner-address' marker_field='wpcf-partner-address' item='@film-venue-platform.parent']
Example: [wpv-post-link] - This is where you can add popup content using HTML and our shortcodes. For complex markup or Block Editor editing capability, create this content in a separate Content Template and insert that template here using the wpv-post-body shortcode.
[/wpv-map-marker]
- You can edit the content in between the marker shortcode tags to adjust the contents of the marker popup. If you want to change the marker_id attribute, you should choose something unique so that this marker's id does not conflict with any other marker IDs applied to the same map. The two existing markers are currently configured as marker-7 and marker-10, so I would avoid those two IDs unless you plan to delete those existing markers from the map block.
- You should not change the other wpv-map-marker shortcode attributes unless you make some major changes to map IDs, custom address fields or their slugs, or to the post relationships involved.
- You can learn more about the map marker shortcode options in our docs here:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
- Content template shortcode wpv-post-body:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body
Let me know if you have questions about this, or if you have trouble implementing the solution I've described. I can offer more direct guidance as needed.