Skip to content

Instantly share code, notes, and snippets.

@caratage
Created November 23, 2012 18:39
Show Gist options
  • Save caratage/4136777 to your computer and use it in GitHub Desktop.
Save caratage/4136777 to your computer and use it in GitHub Desktop.
Add image sizes for thumbnails
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'unlimited-width-thumb', 9999, 200 ); // unlimited width, 200 pixels height
add_image_size( 'cropped-thumb', 200, 100, true ); // (cropped)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment