I am new to Wordpress and following a training course. Its told me to enable to use of Featured Images I need to add the following line into my functions.php:
add_theme_support('post-thumbnails');
and then the following in my post types file:
'supports' => array('title', 'editor', 'thumbnail'),
However I have done this but no luck getting the option to add a featured image. I have checked screen options and it is not appearing as an option I can enable.
I've checked similar threads already but no luck :(
add_theme_support
, can you show the surrounding context for that function call? Is it inside another function? Which hook is it called on? Is it called on a hook?