check out set_post_thumbnail($post_id, $thumbnail_id).
Hello all, just from reading through the above posts it looks like some of you with issues haven’t actually re-setup your sidebar and widget settings. The upgrade instructions are to:
1. Drag the MailChimp Widget back into the sidebar. This is done on the WordPress backend at Appearance>>Widgets.
2. Visit the MailChimp settings page (Settings>>MailChimp Setup, which will have maintained your prior settings), click the “Update List” button, and you’re done!
Has anyone here completed these steps and still having issues? If so, what version of WordPress are you running?