Title: Problem with post types
Last modified: August 20, 2016

---

# Problem with post types

 *  [kayyy](https://wordpress.org/support/users/kayyy/)
 * (@kayyy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/problem-with-post-types/)
 * hi,
 * after i switched my site to another server, my custom post types doesnt work 
   anymore. i get the follow error:
    `Warning: Missing argument 2 for add_post_type_support(),
   called in /www/htdocs/w00ad6d8/mycrotrend/kunden/ironworks/wp-content/themes/
   ironworks/functions.php on line 58 and defined in /www/htdocs/w00ad6d8/mycrotrend/
   kunden/ironworks/wp-includes/post.php on line 1229`
 * line 58 in the functions.php are my thumnails:
 *     ```
       if (function_exists('add_theme_support'))
       	{
       	add_theme_support('post-thumbnails');
       	add_image_size('small-thumbnail', 241, 180);
       	add_image_size('big-thumbnail', 700, 500);
       }
   
       if (function_exists('add_post_type_support'))
       	{
       	add_post_type_support('post-thumbnails');
       	add_image_size('small-thumbnail', 241, 180);
       	add_image_size('big-thumbnail', 700, 500);
       }
       ```
   
 * does someone know a solution?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/problem-with-post-types/#post-2137379)
 * `add_post_type_support('post-thumbnails');`
 * What’s that for? Did you mean to use `add_theme_support( 'post-thumbnails' );`?
 *  Thread Starter [kayyy](https://wordpress.org/support/users/kayyy/)
 * (@kayyy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/problem-with-post-types/#post-2137383)
 * thats the support for thumbnails in custom post types.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with post types’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [post-type](https://wordpress.org/support/topic-tag/post-type/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kayyy](https://wordpress.org/support/users/kayyy/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/problem-with-post-types/#post-2137383)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
