3

Instead of using timthumb, use the internal image API. Firstly, specify the custom size you're wanting to use by using add_image_size: Usage: <?php add_image_size( $name, $width, $height, $crop ); ?> So you would put this in your themes functions.php: add_image_size( 'large_post_image_header', 660,246,true); Then, instead of: <?php $image = ...


2

Just delete your timthumb.php file. If your site thumbnails use timthumb then the code might look like this <img src="<?php bloginfo('template_directory'); ?>/xxxxx/timthumb.php?src=<?php echo "original image url" ?>&h=150&w=150&zc=1" /> Just replace those instances with code like this the_post_thumbnail('thumbnail', ...


1

If I understand your question correctly, you want to retrieve the first attached image to each post & use the thumbnail size, rather than parsing the content for embedded images & using timthumb? If so, set your thumbnail size to the required size (60x60) in the media options page, make sure you've drag n dropped the attachments into the required ...


1

I had this same issue and tried the binarymoon fix... but it never worked out for me. But, I found this fix! http://wpcodesnippets.info/blog/how-to-use-timthumb-php-with-multisites.html Just copy paste the timbthumb.php file with the mulitsite fix in it and you should be good to go. Good Luck.


1

If folder permission are correct then it should work. Anyway try this one. And let me know how it goes. <img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php $featured_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); echo $featured_image_url[0]; ?>&amp;h=170&amp;w=170&...


1

I'm not quite sure you're using the wp_check_filetype() correctly. I just successfully tried the following to determine if the post thumbnail ext was jpg or not: $url = wp_get_attachment_url( get_post_thumbnail_id( ) ); $filetype = wp_check_filetype($url); if ($filetype[ext] == 'jpg') { echo 'this is gif'; } else { echo 'this aint ...


1

The problem is not with TimThumb, it's with how you are calling TimThumb. Looking at your site, it is trying to load: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://i2.wp.com/ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg?resize=269%2C80&h=80&w=269&a=t&zc=1 If you update the theme or TimThumb config to ...


1

The Problem here lies within the Plugin, which utilizes the deprecated Function image_resize. I'm not 100% sure that this is the only Problem, but try rewriting the Plugin using the new [WP_Image_Editor][1] Class. The next Step to check is if the Plugin can write the files, and if the directory permissions are set correctly. See Line 128 of your code: $...


1

There are two reasons: post_thumbnail was introduced with WordPress 2.9, and many themes which used TimThumb because post_thumbnail wasn't yet available to them. TimThumb is more flexible than post_thumbnail — it gives you more options for how images are cropped, and allows for simple filters to be applied to the images. However, TimThumb has also caused ...


Only top voted, non community-wiki answers of a minimum length are eligible