Yes, everything works ok now! Thanks a lot! I owe you a cup of coffee. It’s on its way 😉
Really, thanks a lot, Scribu. This is the solution, however we are not there yet! 2 problems have to be solved:
(1) For the global map to work we need to replace (in romeluv-maps.php)
infowindow.setContent("<p style=\'width:95%\'><a class=\'romeluv-google-map-link\' href=\''.get_permalink($post->ID).'\'><b>'.get_the_title().'</b></a><br /> ';
with
infowindow.setContent("<p style=\'width:95%\'><a class=\'romeluv-google-map-link\' href=\''.get_permalink($post->ID).'\'><b>'. esc_js( get_the_title() ).'</b></a><br /> ';
(2) Now, the title does not display well in infowindows of the maps. Instead of the ‘clean’ title link Damrak, Amsterdam it shows a part of the code like this <span data-post_id="23" data-type="input" data-filter="the_title" class="fee-field">Damrak, Amsterdam</span>
Any idea on how to solve the latter problem (2)?