Skip to content

Instantly share code, notes, and snippets.

@dompascal
Created November 23, 2013 11:08
Show Gist options
  • Save dompascal/7613334 to your computer and use it in GitHub Desktop.
Save dompascal/7613334 to your computer and use it in GitHub Desktop.
WP - Image Sizes Function
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 600, 50, true ); // Normal post thumbnails
add_image_size( 'thumb',150, 9999 ); // Permalink thumbnail
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment