Return to Snippet

Revision: 56745
at April 13, 2012 16:01 by adiacone


Initial Code
if (get_option('medium_crop') === false) {
    add_option('medium_crop, '1');
} else {
    update_option('medium_crop', '1');
}

Initial URL
http://stackoverflow.com/questions/3454337/crop-thumbnail-to-exact-dimensions-on-wordpress-for-medium-size

Initial Description
Add this bit of code to functions.php

Initial Title
Crop medium thumbnail in WordPress

Initial Tags
image, wordpress

Initial Language
PHP