Custom image sizes are not used

The function.php: if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions } if ( function_exists( ‘add_image_size’ ) ) { add_image_size(‘homepage’, 704, 396, true); add_image_size(‘articles’, 1174, 660, true); add_image_size(‘in-post’, 568, 320, true); add_image_size(‘featured-post’, 1280, 683, true); } To make it appear in .php-file: <?php if ( … Read more

Crop featured image by default

try this define a custom image size (add_image_size) add_image_size(name,w,h,true); where w and h for height and width of your image.and fourth parameter true for hard croping of image.read wordpress codex for that put your custom image size name in the_post_thumbnail function the_post_thumbnail(‘name’) or if your design is not responsive then you can set image size … Read more

Thumbnails not showing in blog

The loop term in WP refers to concept of iterating over post objects and (typically) filling global variables with data of current one. It can be identified by one of: the_post() function calls (main loop) $some_variable->the_post() method calls (secondary loops using WP_Query object) setup_postdata( $post ) (more raw version, working with array of post objects) … Read more

Hide feature image when is not populated

I guess the <div class=”single-post-thumb” > is the one with the border etc. Change your code to this: if ( has_post_thumbnail( ) ) { echo ‘<div class=”single-post-thumb” >’; tie_thumb( ”, $width, $height ); if ( get_post( get_post_thumbnail_id( ) )->post_excerpt ) { echo ‘<div class=”post_thumbnail-caption”>’ . get_post( get_post_thumbnail_id( ) )->post_excerpt . ‘</div>’; This will cause the … Read more