Set Multiple Thumbnail Size WordPress

Set Multiple Thumbnail Size WordPress

308
0
SHARE

In your theme’s function, add the following code.

add_theme_support used for allows a theme or plugin to register support of a certain theme feature. And set default thumbnail size with set_post_thumbnail_size.

add_image_size(‘name of size’, width, height, crop);

How to call the thumbnail?

In case, this working when you uploading new as feature image. You doesn’t have new image size for your old image. Use Force Regenerate Thumbnails for generate thumbnail image with new function.

NO COMMENTS

LEAVE A REPLY