Thumbnail for Excerpts : Hack for WordPress 2.8+

I was stucked with Thumbnail for Excerpt plugin behaving unexpectedly with WordPress 2.8.2

Thank you Cory for sharing the plugin hack to make it work.

Bug: The Thumbnail for Excerpt plugin showing the same thumbnail image with all the posts (with WordPress 2.8.2+)

Solution: Edit the plugin in plugin editor. Replace lines 28 & 29 with this:

global $wp_query, $wpdb, $post;
$id = $post->ID;

The actual lines of code look like this

global $wp_query, $wpdb;
$id = $wp_query->post->ID;

Replace these lines with

global $wp_query, $wpdb, $post;
$id = $post->ID;
This entry was posted in Wordpress and tagged , . Bookmark the permalink.

One Response to Thumbnail for Excerpts : Hack for WordPress 2.8+

Leave a Reply

Your email address will not be published. Required fields are marked *