get_post_meta in sitewide tags plugin fails to return value for custom fields

I just solved a similar problem on a site I’m working on — I couldn’t get any meta values out of posts after I moved my loop code to a plugin.

Turns out that when you have a loop running from within a sitewide plugin, the way you access post meta is different.

Instead of writing this:

get_post_meta($post->ID, 'start-time', true);

you have to write this:

get_post_meta(get_the_ID(), 'start-time', true);

Note that first parameter, $post->ID changes to get_the_ID().
This fixed the problem for me, hopefully it does for you too!