php - Wordpress Resize Image and show as thumb in post -



php - Wordpress Resize Image and show as thumb in post -

i have set crop in functions.php resize images posts.

codex wordpress: add_image_size, post_thumbnail

add_theme_support('post-thumbnails'); set_post_thumbnail_size(100, 100, true); //size of thumbs add_image_size( 'post-thumb', 180, 180, true ); //(cropped)

usage below

<?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'post-thumb' ); } ?>

but not resize thumb , shows original size. doing wrong?

wordpress resize images on upload, can utilize this plugin resize images on fly, first time phone call image size not exists, plugin resize image next times image size exist.

php wordpress

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -