Created
April 13, 2016 09:31
-
-
Save khoipro/28c98309e50f26265e90cfe88da501c5 to your computer and use it in GitHub Desktop.
Adding thumbnail support for posts in 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
if (function_exists('add_theme_support')) { | |
add_theme_support('post-thumbnails'); | |
} | |
set_post_thumbnail_size( 70, 70); | |
add_image_size( 'single-post-thumbnail', 600, 350 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment