Post thumbnail not working after regenerate

Look at the wp-content/uploads/ directory. Does your cropped image exists there? (e.g. myimage-185×185.jpg). If not, you could try to call add_image_size() on the init action hook. functions.php function wpse27579_addImageSizes() { add_image_size(‘thumbnail-gallery’, 185, 185, true); } add_action(‘init’, ‘wpse27579_addImageSizes’);

How to offset thumbnails to the center?

I tried and use successfully this code which allow to define image size using specific cropping position for this image size : bt_add_image_size( ‘product-screenshot’, 300, 300, array( ‘left’, ‘top’ ) ); It allow centering option so it looks like matching your purpose. I’ve added the code in a separate php file that I included into … Read more

Get ID of featured image using “get_post_thumbnail_id(the_ID())” – without printing to screen?

You should not use the_ID() in this case, since it will echo the ID, use instead get_the_ID() to return it. So please try this instead: $thumb_id = get_post_thumbnail_id( get_the_ID() ); to get the ID of a post thumbnail image. The general rule is that the_*() functions will echo the output, but get_*() functions will return … Read more

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