Chris,
For technical reasons, I’m using custom fields to store my post thumbnails in one of my bespoke WP themes.
I’ve tried tweaking the map_poi.php file to get the custom image field displayed using this code:
<?php $postimagethumb = get_post_meta($post->ID, 'normalthumb', true); if ($postimagethumb) { ?>
<img src="<?php bloginfo('url'); ?>/images/<?php echo $postimagethumb; ?>" class="mapp-thumb" width="45" height="45" />
<?php } else { ?>
<img src="<?php bloginfo('url'); ?>/images/single-item-image.jpg" class="mapp-thumb" width="45" height="45" />
<?php } ?>
But it doesn’t seem to pull the custom image and instead always displays the default image.
Can you suggest a code snippet that will work, or is it something that can’t be done in map_poi.php?
Cheers,
Clive