2010年10月28日 [wordpress]カスタムフィールドの内容をカスタム投稿タイプごとに変更する カテゴリWordpress カスタムフィールドを使うときにとても便利なプラグインCustom Field GUI Utility。 こちらでダウンロード。 かたつむりくんのWWW カスタム投稿タイプの種類別に、違う設定ファイルを読み込んでカスタムフィールドを作成したい。 設定ファイルの名前は「conf-{ポストタイプ名}.ini」とする。 cfg-utility.class.phpの18行目function get_custom_fields()の内容を変更する。 $file = dirname( __FILE__ ) . '/conf.ini'; の部分を $post_type = get_post_type(); if($post_type){ $file = dirname( _