Goliath thumbnail control size
WordPress plugin that control the thumbnail minume size
by Studio Goliath · github.com/studio-goliath/goliath-thumbnail-control-size
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/studio-goliath/goliath-thumbnail-control-size/archive/refs/heads/master.zipReadme
Goliath thumbnail control size
WordPress plugin that control the thumbnail minume size
How to add a minimum size
Just add the thumbnail_size in your post type registration arguments.
Examples :
For a build in post type
add_filter( 'register_post_type_args', 'goliath_register_post_type_args', 10, 2 );
function goliath_register_post_type_args( $args, $post_type_name ){
if( $post_type_name == 'post' ){
$args['thumbnail_size'] = array(
'min' => array( '500', '311' ),
'cropped' => true
);
}
return $args;
}