Reputation: 791
I don't know whats happening but suddenly some things started to disappear from the admin panel. I have a custom post type for ads and they have support for thumbnail, meaning:
'supports' => array( 'title', 'editor', 'author', 'thumbnail')
But today when i was trying to insert a new ad the featured image / thumbnail didn't show up so i could select an image from media. It's very strange.
I also can't see the image from previous ad's, but this only in the admin panel, they are perfectly ok in the "Front End".
Update -
I also tried to include this functions at some init hook and didn't work:
add_action( 'init', 'create_post_pub' );
function create_post_pub()
{
// ....
add_theme_support( 'post-thumbnails', array( 'post', 'publicidade' ) );
add_theme_support( 'thumbnail', array( 'post', 'publicidade' ) );
}
Thanks in advance!
Upvotes: 0
Views: 5562
Reputation: 791
Solved.
I can't believe i spent so much time figuring this out, i thought it was a theme's problem sort of. My client ended up unchecking the "featured image" checkbox from the "screen options" at the top right corner.
Upvotes: 3