サポート » プラグイン » カスタム投稿でCustom Field TemplateのmultipleButtonが機能しません。。。

  • 解決済 plum0710

    (@plum0710)


    申し訳ありません。ご教授お願いします。

    カスタム投稿でCustom Field Template(プラグイン)のmultipleButton機能を使用したいのですが、追加ボタンを押しても機能してくれません。(編集用URLに#clearが追加されるのみです)

    デフォルトの投稿に対して全く同じテンプレートコンテンツを入れると機能するため、非常に混乱しています。

    以下、Custom Field Templateの設定です。

    `[field0]
    type = fieldset_open
    legend = コンテンツ
    multiple = true
    multipleButton = true
    blank = true

    [タイプ選択]
    type = select
    value = type1 # type2
    valueLabel = タイプ1 # タイプ2
    default = type1
    label = タイプ選択
    selectLabel = 使用するタイプを選択してください

    [画像アップロード1]
    type = file
    label = アップロードする画像を選択してください。
    mediaLibrary = true
    mediaRemove = true
    mediaPicker = true

    [文章]
    type = textarea
    rows = 4
    cols = 40
    tinyMCE = false

    [field0]
    type = fieldset_close

    またカスタム投稿は以下のコードをfunction.phpに入力しています。
    以下のような設定ですので「カスタムポストタイプ (カンマ区切り):」の中にblogを入れて使用しようとしています。

    function custom_post_type_add(){
    register_post_type(‘blog’, array(
    ‘label’ => ‘ブログ’,
    ‘description’ => ”,
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘show_in_menu’ => true,
    ‘capability_type’ => ‘post’
    ‘hierarchical’ => false,
    ‘rewrite’ => array(‘slug’ => ”),
    ‘query_var’ => true,
    ‘exclude_from_search’ => false,
    ‘supports’ => array(‘title’,’thumbnail’,),
    ‘taxonomies’ => array(‘category’,’post_tag’)
    ‘has_archive’ => true,
    ‘menu_position’ => 2,
    ‘labels’ => array (
    ‘name’ => ‘ブログ’,
    ‘singular_name’ => ‘ブログ’,
    ‘menu_name’ => ‘ブログ’,
    ‘add_new’ => ‘新規追加’,
    ‘add_new_item’ => ‘新規投稿を追加’,
    ‘edit’ => ‘Edit’,
    ‘edit_item’ => ‘ブログの編集’,
    ‘new_item’ => ‘New ブログ’,
    ‘view’ => ‘View ブログ’,
    ‘view_item’ => ‘投稿を表示’,
    ‘search_items’ => ‘ブログを検索’,
    ‘not_found’ => ‘No ブログ Found’,
    ‘not_found_in_trash’ => ‘No ブログ Found in Trash’,
    ‘parent’ => ‘Parent ブログ’,
    ),
    )
    );
    }
    add_action(‘init’, ‘custom_post_type_add’);
    `

    大変、申し訳ありませんがお力添えどうかお願いします。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック投稿者 plum0710

    (@plum0710)

    申し訳ありません。
    初投稿なものでコードの囲いこみがうまくできておらず、見にくいです。。。

    トピック投稿者 plum0710

    (@plum0710)

    申し訳ありません。自己解決しました。

    supportsのeditorを抜くとmultipleButtonが機能しなくなるようです。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック「カスタム投稿でCustom Field TemplateのmultipleButtonが機能しません。。。」には新たに返信することはできません。