Thumbnail is corrupt but image is good

You may need to reset the thumbnail settings in your media settings, then regenerate the thumbnail; either: use Regenerate Thumbnails plugin to rebuild all thumbnails; or edit image / rotate it left / rotate it right (back to original) / save image

image thumbnail in RSS Feed

If you are using the native RSS feeds then the post thumbnail can be added by a filter hook: function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content=”” . get_the_post_thumbnail( $post->ID, ‘thumbnail’, array( ‘alt’ => get_the_title(), ‘title’ => get_the_title(), ‘style’ => ‘float:right;’ ) ) . ” . $content; } return $content; } … Read more

need to add attach thumbnail from my form

Its pretty simple actually. Here is the link for the set_thumbnail function reference codex. And here is the answer for the file upload. First off all you have to attach the file to the post : function attach_uploads($uploads,$post_id = 0){ $files = rearrange($uploads); if($files[0][‘name’]==”){ return false; } foreach($files as $file){ $upload_file = wp_handle_upload( $file, array(‘test_form’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)