Last active
January 19, 2016 21:30
-
-
Save rugor/5417949 to your computer and use it in GitHub Desktop.
PHP: Wordpress functions.php enable post thumbnails #rugor #st
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
// Enable thumbnails in Wordpress 3.0 | |
add_theme_support( 'post-thumbnails' ); | |
set_post_thumbnail_size( 220, 220, true ); // slideshow size 220 pixels wide by 220 pixels tall, hard crop mode | |
add_image_size( 'thumbnail-tall', 220, 450 ); // TALL THUMBNAIL | |
add_image_size( 'thumbnail-wide', 450, 220 ); // WIDE THUMBNAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment