Featured image is not displaying on wp-admin side. I have also selected 'featured image' option from Screen Options. While Selecting image from media it doesn't show selected image in the metabox. I have written the below code:

function twentytwelve_setup() {
add_action( 'after_setup_theme', 'twentytwelve_setup' );
  • 1
    That code looks fine. The behaviour is unusual and it's difficult to say what may be causing it. The usual debugging path would be to disable all plugins and see if the problem is still there. Then switch them on one by one.
    – cjbj
    Sep 19 '16 at 12:01
  • why do you have this inside a function? Can't you just put add_theme_support( 'post-thumbnails' ); directly inside your functions.php? Sep 17 '18 at 15:35

Have you double checked if the featured-image section is enabled under the Screen Options tab?

enter image description here


You can disable/comment these plugin/code one by one by which having remove_meta_box() function.

remove_meta_box function is used to removes a meta box or any other element from a particular post edit screen of a given post type. It can be also used to remove a widget from the dashboard screen.

Once you filter this things you get the cause point. Best of luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.