Closed assoscoupa closed 4 years ago
Hi,
Do you want a filter to customize the marker ?
Here the code to hook in 1.0.3 version:
function bindPopup_content_filter( $bindPopup_content, $post_id ) {
return "Yeahhhhh";
}
add_filter( 'cpt_to_map_store_bindPopup_content', 'bindPopup_content_filter', 10, 2 );
@assoscoupa It is ok for you ?
I put your code to the test and it worked fine.
But I didn't manage to show my own field.
Could you give me a code example of how I should write it so that I can display, for example, my own field called "property_status" ?
It is also possible to disable the rolling wheel zoom on the map?
In this filter, you can put your code to get the different fields : ACF : https://www.advancedcustomfields.com/resources/get_field/ WP : https://developer.wordpress.org/reference/functions/get_post_meta/ And generate your own template
For the wheel, can you open a other issue ? Have you an example ?
I have a custom field for photography in my installation which I call "photo".
When I enter the {photo} in the Template popup, then the only thing that returns is the id attachment.
The Template popup does not accept php code to write dynamically.
What is the solution?
Thanks!