Crop medium thumbnail in WordPress


/ Published in: PHP
Save to your folder(s)

Add this bit of code to functions.php


Copy this code and paste it in your HTML
  1. if (get_option('medium_crop') === false) {
  2. add_option('medium_crop, '1');
  3. } else {
  4. update_option('medium_crop', '1');
  5. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.