Hey DP! On my new tech blog I am in a bit of trouble with the thumbnails. I decided I could not be bothered with the hassle so got rid of them. now I am getting double titles on the homepage, can you see them? For example there is one in the first box that says: How To Use Google Analytics and then again: How To Use Google Analytics. How can i solve this problem through FTP? I appreciate any comment and +rep shall be given! SITE: http://zavle.com/
Looks like it's the timthumb script giving you trouble. Go here http://zavle.com/wp-content/themes/Gadgets/ and find a file called "cache", right click on the file, find info or more info or settings or details. The point is to change the permissions to 777 so the script can create images with the sizes detailed by the theme. Otherwise google "Change permissions with ..." then whatever FTP program you use!
Sadly this may not be a problem "you" have created, I have come accross this many times with different WP plugins that create a conflict with some WP themes - it's a shame there is not a "standard" that plugin writers have to adhere to. Anyhow, here's a very simple "plugin" style function that grabs the first image from a post resizes it and display's it in a css div called thumbnail: function first_thumb_img() { $files = get_children('post_parent='.get_the_ID().'&post_type=attachment&post_mime_type=image'); $id = get_the_ID(); if($files) : $keys = array_reverse(array_keys($files)); $j=0; $num = $keys[$j]; $image = wp_get_attachment_image($num, 'large', false); $imagepieces = explode('"', $image); $imagepath = $imagepieces[1]; $thumb = wp_get_attachment_thumb_url($num); list($width, $height) = getimagesize($imagepieces[5]); if(($width*$newheight)<='90'): $measurement = 'width=90px'; else: $measurement='height=90px'; endif; print '<div class="thumbnail med"><img src="'.$imagepieces[5].'"'.$measurement.' alt="Image from '.get_the_title($id).'" title="Click to enlarge" /></div>'; else: print '<div class="thumbnail"><img src="wp-content/themes/themename/images/default.png" width="90px" alt="default image" /></div>'; endif; } You can apply it very easily - paste the function into your functions.php file then where you want the thumbnails to appear by calling <?php first_thumb_img(); ?> on your template page. NOTE: it needs to run inside the WP Loop. This is a "sure fire" way to display thumbnails and has no conflict with any theme - unless they use a CSS div called thumbnail. But, that is easy to solve by changing the css name in the function above.