I would like to do is to restrict different thumbnail sizes for especific post types.
So, as an example:
* Thumbnails for my custom post type would always be 150×150
* Thumbnails for my default post type would always be 200×200
When adding the function for thumbnains in my functions.php file for my theme I can use the following code:
add_theme_support( 'post-thumbnails', array( 'post', 'partner' ) ); set_post_thumbnail_size(150,150,true); // 150x150 hard crop mode
So I can have thumbnails of size 150×150 for my post types post and partner.
I know I can add multiple thumbnail sizes with a code such as:
add_image_size(‘TinySize’, 50, 50, true);
But the point of my suggestion is to be able to configure my WP site so posts of type 1 can have thumbnails of size A, B, C. While posts pof type 2 can have thumbnails of size X, Y, Z.
What do you guys think?
- The topic ‘Feature: Restrict thumbnail sizes for specific post tpes’ is closed to new replies.