Created
March 22, 2013 03:39
-
-
Save spencejs/5218777 to your computer and use it in GitHub Desktop.
Add Post Thumbnails To Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_theme_support('post-thumbnails'); | |
set_post_thumbnail_size( 150, 120, true ); // Normal post thumbnails | |
add_image_size( 'magazine-post-thumbnail', 260, 174, true ); // Permalink thumbnail size | |
add_image_size( 'home-post-thumbnail', 168, 89, true ); // Permalink thumbnail size | |
add_image_size( 'single-post-thumbnail', 527, 317, true ); // Permalink thumbnail size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment