WordPress add_theme_support() Adding theme support for post thumbnails to posts


Example

add_theme_support( 'post-thumbnails', array( 'post' ) );

The above code only allows post thumnails on all posts. To enable the feature on all post types, do:

add_theme_support( 'post-thumbnails' );