サポート » プラグイン » Custom Filed Suite でフィールドを追加すると既存のフィールドと重複してしま

  • 解決済 Megumi

    (@meglognet)


    お世話になります。
    Custom Filed Suite(v2.3.7)を使用しているサイトにフィールドを追加したいのですが、フィールドを追加すると、なぜか下記のように既存のフィールドと重複してしまいます。

    例)既存のフィールド:A〜E、追加したフィールド:F
    投稿画面にフィールドFの項目は追加表示されるものの、フィールドAの値が入っている。
    フィールドFの値を書き換えて保存すると、フィールドAの値がフィールドFの値になってしまう。

    フィールド名は異なるものを付与しています。
    Custom Field Suiteを停止してWordPressデフォルトのカスタムフィールドで試すと、正常に追加でき、それぞれに値を保存できます。
    Custom Field Suite以外のプラグインを停止してみましたが、変わりありません。
    さらに、Custom Field Suiteを最新バージョンに更新すると、Custom Field Suiteの設定画面で既成のフィールドを編集できなくなってしまいます。

    なお、ほかのサイトではこのような現象は起きず、バージョンアップしても正常に動作しているので、プラグイン固有の問題ではないかもしれませんが…

    何か原因などお分かりになることがあれば、お教えください。

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • モデレーター Takuro Hishikawa

    (@hissy)

    設定を知りたいので、該当のグループをエクスポートして貼付けていただけますか。こんな感じのJSONデータが出力されると思います

    [{"post_title":"Test Group","post_name":"test-group","cfs_extras":{"order":"0","context":"normal","hide_editor":"0"},"cfs_fields":[{"id":"1","name":"test","label":"Test","type":"text","notes":"","parent_id":0,"weight":0,"options":{"default_value":"","required":"0"}},{"id":3,"name":"date","label":"Date","type":"date","notes":"","parent_id":0,"weight":1,"options":{"required":"0"}},{"id":4,"name":"color","label":"Color","type":"color","notes":"","parent_id":0,"weight":2,"options":{"required":"0"}},{"id":5,"name":"boolean","label":"Boolean","type":"true_false","notes":"","parent_id":0,"weight":3,"options":{"message":"","required":"0"}},{"id":6,"name":"select","label":"Select","type":"select","notes":"","parent_id":0,"weight":4,"options":{"choices":{"A":"A","B":"B","C":"C"},"multiple":"0","required":"0"}},{"id":7,"name":"post","label":"Post","type":"relationship","notes":"","parent_id":0,"weight":5,"options":{"limit_min":"","limit_max":""}},{"id":8,"name":"file","label":"File","type":"file","notes":"","parent_id":0,"weight":6,"options":{"return_value":"url","required":"0"}}],"cfs_rules":{"post_types":{"operator":"==","values":["post"]}}}]

    トピック投稿者 Megumi

    (@meglognet)

    Hishikawaさん、ありがとうございます!

    1つの投稿タイプに2つのグループを設定しています。
    グループ2のttl_contractが新規に追加したフィールドでして、グループ1のcustomer_dateと重複してしまうわけですが、こうして見ると同じidになっていますね…。
    何度やリ直しても、別のグループとして追加しても同様です。
    さらにフィールドを追加すると、id2,id3となっていく感じです。

    なにか原因や解決策がわかりましたら、お教えいただけるとありがたく存じます。

    【グループ1】
    [{“post_title”:”\u304a\u5ba2\u69d8\u60c5\u5831″,”post_name”:”%e3%81%8a%e5%ae%a2%e6%a7%98%e6%83%85%e5%a0%b1″,”cfs_fields”:[{“id”:”1″,”name”:”customer_date”,”label”:”\u65e5\u4ed8″,”type”:”date”,”notes”:””,”parent_id”:0,”weight”:0,”options”:{“required”:”1″}},{“id”:”2″,”name”:”customer_area”,”label”:”\u30a8\u30ea\u30a2\u540d”,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:1,”options”:{“default_value”:””,”required”:”1″}},{“id”:”3″,”name”:”customer_hn”,”label”:”\u304a\u5ba2\u69d8\u540d\uff08\u8868\u793a\u7528\uff09″,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:2,”options”:{“default_value”:””,”required”:”1″}},{“id”:”4″,”name”:”customer_name”,”label”:”\u304a\u5ba2\u69d8\u540d\uff08\u672c\u540d\uff09″,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:3,”options”:{“default_value”:””,”required”:”1″}},{“id”:”5″,”name”:”customer_family”,”label”:”\u5bb6\u65cf\u69cb\u6210″,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:4,”options”:{“default_value”:””,”required”:”0″}},{“id”:”6″,”name”:”customer_staff”,”label”:”\u62c5\u5f53\u8005\u540d”,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:5,”options”:{“default_value”:””,”required”:”0″}},{“id”:”7″,”name”:”customer_image”,”label”:”\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf”,”type”:”file”,”notes”:””,”parent_id”:0,”weight”:6,”options”:{“return_value”:”url”,”required”:”0″}},{“id”:”8″,”name”:”customer_number”,”label”:”\u7ba1\u7406\u756a\u53f7″,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:7,”options”:{“default_value”:””,”required”:”0″}}],”cfs_rules”:{“post_types”:{“operator”:”==”,”values”:[“customer”]}},”cfs_extras”:{“order”:”0″,”context”:”normal”,”hide_editor”:”0″}}]

    【グループ2】
    [{“post_title”:”\u304a\u5ba2\u69d8\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc”,”post_name”:”%e3%81%8a%e5%ae%a2%e6%a7%98%e3%81%ae%e5%a3%b0″,”cfs_fields”:[{“id”:1,”name”:”ttl_contract”,”label”:”\u3054\u5951\u7d04\u30bf\u30a4\u30c8\u30eb”,”type”:”text”,”notes”:””,”parent_id”:0,”weight”:0,”options”:{“default_value”:””,”required”:”0″}},{“id”:”11″,”name”:”content_contract”,”label”:”\u3054\u5951\u7d04″,”type”:”wysiwyg”,”notes”:””,”parent_id”:0,”weight”:1,”options”:{“formatting”:”default”,”required”:”0″}},{“id”:”12″,”name”:”content_groundbreaking”,”label”:”\u7740\u5de5\u5f0f”,”type”:”wysiwyg”,”notes”:””,”parent_id”:0,”weight”:2,”options”:{“formatting”:”default”,”required”:”0″}},{“id”:”15″,”name”:”content_story”,”label”:”\u5bb6\u5275\u308a\u30b9\u30c8\u30fc\u30ea\u30fc”,”type”:”wysiwyg”,”notes”:””,”parent_id”:0,”weight”:3,”options”:{“formatting”:”default”,”required”:”0″}},{“id”:”13″,”name”:”content_handover”,”label”:”\u304a\u5f15\u304d\u6e21\u3057″,”type”:”wysiwyg”,”notes”:””,”parent_id”:0,”weight”:4,”options”:{“formatting”:”default”,”required”:”0″}},{“id”:”14″,”name”:”content_interview”,”label”:”\u30a2\u30d5\u30bf\u30fc\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc”,”type”:”wysiwyg”,”notes”:””,”parent_id”:0,”weight”:5,”options”:{“formatting”:”default”,”required”:”0″}}],”cfs_rules”:{“post_types”:{“operator”:”==”,”values”:[“customer”]}},”cfs_extras”:{“order”:”0″,”context”:”normal”,”hide_editor”:”1″}}]

    トピック投稿者 Megumi

    (@meglognet)

    自分で可能な限りの検証をしてみましたが、やはり原因が判明しなかったため、入力済みのメタデータは保持しつつ『Smart Custom Fields』にプラグインを乗り換えることにしました。

    ということで、解決はしていませんが一度解決済みとさせていただきます。

    モデレーター Takuro Hishikawa

    (@hissy)

    了解です。CFSに対応したプラグインを作っていることもありこちらでも検証していましたが、どうにも再現しませんでした。Smart Custom Fieldsもまたお会いしたときなどに教えてください(^^

    トピック投稿者 Megumi

    (@meglognet)

    ご丁寧にお返事ありがとうございます!
    CFSはよく使っているので原因がわからず悔しいですが、今回はこれ以上時間を割けない事情もあり…。とりあえず、Smart Custom Fieldsにうまく移行できて良かったです。
    お時間をいただき、本当にありがとうございましたm(__)m

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • トピック「Custom Filed Suite でフィールドを追加すると既存のフィールドと重複してしま」には新たに返信することはできません。