Below is the code to add new image sizes in WordPress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|add_image_size('sidebar-thumb', 120, 120, true); // Hard Crop Mode|
|add_image_size('homepage-thumb', 220, 180); // Soft Crop Mode|
|add_image_size('singlepost-thumb', 590, 9999); // Unlimited Height Mode|