I see you are passing the content template itself into the map marker parameter which won't work because the content template doesn't only render the link itself.
Hi Shane,
thanks but nothing changed. Your code goes in the template part of my view right?
Right on top ?
What do you mean by
I see you are passing the content template itself into the map marker parameter which won't work because the content template doesn't only render the link itself.???
I copied the code from the other example - but there were a lot of hidden links, so maybe I am missing something here.
Hi Shane,
what did you change? since your visit my frontend looks like this! (see screenshot).
Also i am using the custom field "nachname" for my terms.
I displayed them temporarily at the bottom of the template view.
[types field='nachname'][/types]
And the terms are displayed correct. So I don't understand why the map is not using it.
Sorry,
I saw that you used the debug='true' - so I was able to delete your code.
What I still don't understand is why the term is not used. It is NOT the taxonomy that you pasted, because this one is using full names (first name, surname etc) - and I need only the last name (which is in german "nachname") - and this is a custom field.
You are checking a Custom field and NOT a taxonomy ?
In this case using the has_term() function is definitely not the correct approach. The has_term() function is used when you want to check if a post has the term attached to it.
Sorry Shane, but there is still one thing missing for me. The new custom icons are not showing my Title and Popup.
I cannot click the new map Icons. The default icons work ok.
Any idea on that?
This is the code that I use:
[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_title="[wpv-post-link]" marker_field="wpcf-geburtsort" marker_icon='[wpv-post-body view_template="marker image"]']<div>[wpv-post-link]<br>[types field='geburtsort'][/types]<br>[wpv-post-featured-image]</div>[/wpv-map-marker]
Again - this works fine for original map markers, but not with the new uploaded - custom markers.
p.s. sorry, but I already removed your access for my website.
Also I noticed that you have the marker code outside of the template area for your view. I would recommend adding this to the template area of your view where the conditional is.