Reply To: more custom fileds in Geocoding body field

Home Forums MapPress Support more custom fileds in Geocoding body field Reply To: more custom fileds in Geocoding body field

#14036
Chris
Keymaster

Hi, the body is just a single field, but if you want to display other custom fields in the infowindow you can modify the POI display template file ‘map_poi.php’. See the documentation for some info about modifying templates.

Here’s an example to print a custom field for mashups or single maps:

<?php
global $post;
$postid = ($poi->postid) ? $poi->postid : $post->ID;
echo get_post_meta($postid, 'my_field_name', true); 
?>