functions: add thumbnail support the right way

This commit is contained in:
Kazhnuz 2018-10-27 14:32:21 +02:00
parent d664f0461f
commit 0977300d88
1 changed files with 3 additions and 1 deletions

View File

@ -45,11 +45,13 @@ register_taxonomy_for_object_type( 'niveau', 'post' );
function wpqdouze_post_supports() {
add_post_type_support( 'post', 'excerpt');
add_post_type_support( 'post', 'thumbnail');
}
add_action( 'init', 'wpqdouze_post_supports' );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 825, 510, true );
/* 4. Social Network */
function mypost_social_sharing_buttons($content) {