Home › Forums › MapPress Support › more custom fileds in Geocoding body field › Reply To: more custom fileds in Geocoding body field
January 8, 2014 at 5:50 am
#14036
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);
?>