To be clear I am doing this on single-event.php:
<?php
global $post;
$EM_Event = em_get_event($post->ID, 'post_id');
?>
I show the related location in a section on that page using:
<h5><?php echo $EM_Event->output('#_LOCATIONLINK'); ?></h5>
<?php
echo '<div class="entry"><div class="summary">';
echo $EM_Event->output('#_LOCATIONEXCERPT');
echo '...</div></div>';
?>
Now I need the Post ID of the location, because I need to show an image which is included using a custom field (not related to Events Manager)
Normally I would do this:
<?php
$my_post_meta = get_post_meta($post_id, 'wpcf-gridfoto', true);
echo '<img src=' . $my_post_meta . ' width="200px" style="float: left; margin: 0 10px 10px 0;" />';
?>
How to proceed?