I've been running into an odd problem on our WP blog that has me befuddled.

I custom built the theme we use and I enabled Featured Images by adding the following line to the beginning of the functions.php file:

add_theme_support( 'post-thumbnails' );

This has worked fine for a while now. The Featured Image checkbox appears in the Screen Options dropdown for posts and when checked, the Featured Image module appears in the sidebar. Perfect.

In the last month or so, the Featured Image checkbox option keeps disappearing from the Screen Options dropdown (as does the module).

Now in terms of getting it to reappear, I've only found one thing that seems to work: re-uploading the functions.php file. Keep in mind, I don't actually edit or change the file in anyway. I just re-upload the same version that's currently on the server. For some reason though, that causes the Featured Image stuff to reappear. At least for a while until it disappears again.

Any ideas what this is or how to fix it?


1 Answer 1


It is extremely unlikely that code file of identical content would behave differently.

From your description of situation I see two possibilities:

  1. File does get changed for some reason, you should not only upload clean copy, but actually compare what you have on server at that point against what you have locally
  2. You are mis-identifying upload as the key fix, it might be just related to upload or even completely coincidental

In your situation I would add some debug code (discreetly for admins) that would dump the current state of $_wp_theme_features global to see if it actually changes from expected, possibly during different stages of admin load.

  • I hear what you're saying and I agree. This is why I was so perplexed! Because this is an intermittent issue, I will wait until it happens again and when it does, I'll do the things you suggested and update this post with my results. Thanks for your help.
    – jyushinx
    Commented May 19, 2015 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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