Skip to content

Instantly share code, notes, and snippets.

@khoipro
Created April 13, 2016 09:31
Show Gist options
  • Save khoipro/28c98309e50f26265e90cfe88da501c5 to your computer and use it in GitHub Desktop.
Save khoipro/28c98309e50f26265e90cfe88da501c5 to your computer and use it in GitHub Desktop.
Adding thumbnail support for posts in WordPress
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