Timthumb not working with WordPress 4.0

If folder permission are correct then it should work. Anyway try this one. And let me know how it goes. <img src=”https://wordpress.stackexchange.com/questions/160273/<?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(); ?>” />

Why this thumbnail hard crop code does not work?

You are using the size parameter of wp_get_attachment_image_src in a wrong format. This parameter can be: A string: keyword of the image size; thumbnail, medium, large, full or any other custom size previously registered). A 2-items array representing the width and height; for example, array( 100, 100 ). So, you have to change this: $thumb … Read more

Thumbnail generating and posting

How image gets cropped depends on how the respective size was defined with add_image_size(). In the past it was limited to soft or hard crop modes, always respective to the center of image. Now you can also pass more elaborate directions for the crop, such as array( ‘left’, ‘top’ ). See the linked documentation for … Read more

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