Currently im making new theme and had the idea of adding featured image in the admin side of wordpress, unfortunately its not working this is what i have tried
I have added this code in functions.php
add_theme_support( 'post-thumbnails');
i also tried to change it
add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts
add_theme_support( 'post-thumbnails', array( 'page' ) ); // Add it for pages
after i refresh and log in to my admin panel and tried to create new post or page
featured image is not displaying and
after my set up function which is ja_theme_setup this is my code
add_action('after-setup_theme','ja_theme_setup' );
and also i have tried to look at SCREEN OPTIONS but i dont have any availble checkbox related to featured image..Please help me guys
NOTE:
My wp-config.php file debug options is set to true
define('WP_DEBUG', true);
and yet i dont have any errors