get_post_thumbnail_id() Doesn’t return value [closed]

Dammit, I just discovered that the $m->ID I was using wasn’t actually the post->ID, but the menu->ID. I used $m->object_id to fix the issue. Hope this will help someone in the future :-S