Custom Field Gui Utility のファイルアップローダが無反応
Custom Field Gui Utility のfunctions.phpで、
functions.php
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'catalog',
array(
'labels' => array(
'name' => __( 'ヘアカタログ' ),
'singular_name' => __( 'ヘアカタログ')
),
'public' => true,
'has_archive' => true,
'menu_position' => 5,
'supports' => array( 'title', 'custom-fields' ),
)
);
}
として、php.iniに、
php.ini
[imagefield] fieldname = ヘアスタイル写真(必須) type = imagefield class = catalog size = 35 must = 1
や
[product_image] fieldname = ヘアスタイル写真 type = imagefield class = catalog must = 1
としても、投稿画面のアップローダー
のボタンが押してもまるで無反応。
今朝FlashのバージョンをUPしたばかりだったので、それが原因かもと思い、アンインスト→旧バージョンインストをやっても変らず。
'supports' => array( 'title', 'custom-fields' ),
でエディタを非表示にしているのが原因?と思い、
'supports' => array( 'title', 'custom-fields', 'editor' ),
としたところ、アップローダがちゃんとちゃんと反応するようになった。
Flashやブラウザの問題ぢゃなかったのね。