Tag Archives: thumbnails

Multiple Post Thumbnails Plugin Broken (and Fixed)

The Multiple Post Thumbnails plugin is not working for me using WP 3.2.1. Apparently the function can not determine the ID of the related post with the current setup, that happens around line 190, “public static function get_the_post_thumbnail” My proposed solution is to change this: global $id; $post_id = (NULL === $post_id) ? $id : $post_id; to this: global $id; global $post; $post_id = (NULL === $post_id) ? $id : $post_id; if(!$post_id){ if(!empty($post->ID)){ $post_id = $post->ID; } } It’s not 100% clean but it’s fairly easy to read and it work for me.

Posted in Web Development | Tagged , , | 1 Comment