I have a Wordpress theme which require 4 images sizes:
- small: 960x535
- medium: 1380x770
- large: 1920x1071
- full: 2240x1361
Is there a way to crop the featured image into these sizes so I can use them in my PHP and HTML?
You need to define other sizes with this function
Add
add_image_size ('new-name', 220, 180, true);
in your functions.php file and use
the_post_thumbnail ('new-name');
where you want cropped image. This will give you image of size 220x180 size image.