サカグチデザインオフィス

ブログBlog

カスタム投稿記事編集でアイキャッチ画像が表示されない

2012.12.17更新

WordPressのカスタム投稿編集画面で画面右のにアイキャッチ画像が表示されなくておかしいなと思っていたら・・・

functions.phpのカスタム投稿タイプ設定の’supports’に’thumbnail’を入れて無かっただけでした。

'supports' => array('title','editor','author','thumbnail','excerpt','comments'),
register_post_type('hogehoge' ,$args);
$args = array(
	'labels' => $labels,
	'public' => true,
	'publicly_queryable' => true,
	'show_ui' => true,
	'query_var' => true,
	'rewrite' => true,
	'capability_type' => 'post',
	'hierarchical' => false,
	'menu_position' => 5,
	'has_archive' => true,
	'supports' => array('title','editor','author','thumbnail','excerpt','comments'),
	'taxonomies' => array('news_category','news_tag')
);

ウェブ戦略にお悩みですか?

御社のWEB事業部となって、分析とデザインで集客から売り上げまで改善します!
デザインは2005年から。携わったHPは200件以上!