I have this little function that adds a column to the post list in Wordpress admin and displays the thumbnail for the post:
[php]add_filter(‘manage_posts_columns’, ‘posts_columns’, 5);
add_action(‘manage_posts_custom_column’, ‘posts_custom_columns’, 5, 2);
function posts_columns($defaults){
$defaults[‘riv_post_thumbs’] = __(‘Thumbs’);
return $defaults;
}
function posts_custom_columns($column_name, $id){
if($column_name === ‘riv_post_thumbs’){
echo the_post_thumbnail( ‘thumbnail’ );
}
}[/php]
I want the thumbnail to be a dead link that displays the ‘medium’ size thumbnail when I hover over the thumbnail in the column.
I can echo the medium thumbnail the same as above but I don’t know how to get that into the link within php.
How would I go about plugging that tidbit into this tidbit???