Forums
(@blackbird87)
15 years, 7 months ago
I had the same problem and fixed it with this code:
$atturl = wp_get_attachment_url(get_post_thumbnail_id()); echo preg_replace('/-e[0-9]{13}/', '', $atturl);
Good luck!