0

I just updated WordPress to the latest version, 4.0, and I had a bad surprise - timthumb stopped working. the thumbnails are not generated. I cleared theme's cache folder, and checked to see if chmod is 755 - it is. timthumb is also updated to the latest version. this is how I call the thumbnail

<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&amp;h=170&amp;w=170&amp;zc=1" alt="<?php the_title(); ?>"/>

What else can I do?

thank you

1
  • Is it for featured thumb image for post?
    – Robert hue
    Sep 5, 2014 at 8:26

2 Answers 2

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&amp;zc=1" alt="<?php echo get_the_title(); ?>" />
1
  • that is still not working
    – vyperlook
    Sep 5, 2014 at 8:48
0

solved. seems that the problem was with a file added in wp-content - for security reasons, I added a .htaccess file to wp-content folder, and that was blocking timthumb. In case others have problems, remember not to limit access to wp-content.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.