• 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)
  • add_post_type_support('post-thumbnails');

    What’s that for? Did you mean to use add_theme_support( 'post-thumbnails' );?

    Thread Starter kayyy

    (@kayyy)

    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.