add_filter('post_thumbnail_html', 'gkp_post_thumbnail_html', 10, 2 ); function gkp_post_thumbnail_html( $html, $post_id ) { $html = '' . $html . ''; return $html; }