Thanks Ian, The last option is the best for me, sorry for not getting back to you earlier, could you possible add an example of for adding say “Hello World” to the end of the each post, if its no too much trouble. I don’t have any experience with callbacks but understand the concept, I also think that this might help others?
I know I have done this completely the wrong way, for updates ect, but this is my current solution and would really like to know the correct way of doing this. I have edited your getMapPlacemarks() function on line 999 of core.php
foreach( $publishedPlacemarks as $pp )
{
$icon = wp_get_attachment_image_src( get_post_thumbnail_id( $pp->ID ) );
$defaultIcon = apply_filters( self::PREFIX .'default-icon', plugins_url( 'images/default-marker.png', __FILE__ ), $pp->ID );
$connected_placemarks = '';
$connected = p2p_type( 'project_to_bgmp' )->get_connected( $pp->ID );
while( $connected->have_posts() ) : $connected->the_post();
$connected_placemarks .= '<li><a href="'.get_permalink().'">'.get_the_title().'</a></li>';
endwhile;
$placemarks[] = array(
'title' => $pp->post_title,
'latitude' => get_post_meta( $pp->ID, self::PREFIX . 'latitude', true ),
'longitude' => get_post_meta( $pp->ID, self::PREFIX . 'longitude', true ),
'details' => wpautop( $pp->post_content ).'<ul>'.$connected_placemarks.'</ul>',
'icon' => is_array( $icon ) ? $icon[0] : $defaultIcon,
'zIndex' => get_post_meta( $pp->ID, self::PREFIX . 'zIndex', true )
);
}