functions: indicate thumbnail support

This commit is contained in:
Kazhnuz 2018-10-27 14:29:52 +02:00
parent 6169fd44ac
commit d664f0461f

View file

@ -41,10 +41,11 @@ register_taxonomy(
register_taxonomy_for_object_type( 'niveau', 'post' ); register_taxonomy_for_object_type( 'niveau', 'post' );
/* 3. Excerpt support */ /* 3. Excerpt and thumbnail support */
function wpqdouze_post_supports() { function wpqdouze_post_supports() {
add_post_type_support( 'post', 'excerpt'); add_post_type_support( 'post', 'excerpt');
add_post_type_support( 'post', 'thumbnail');
} }
add_action( 'init', 'wpqdouze_post_supports' ); add_action( 'init', 'wpqdouze_post_supports' );