内容をスキップ
WordPress.org

日本語

  • テーマ
  • プラグイン
  • ニュース
    • ドキュメンテーション
    • フォーラム
  • 概要
  • 参加・貢献
  • このサイトについて
  • WordPress を入手
WordPress を入手
WordPress.org

Plugin Directory

atshift Fields (Maintenance for Custom Field Suite)

  • プラグインを申請
  • お気に入り
  • ログイン
  • プラグインを申請
  • お気に入り
  • ログイン

atshift Fields (Maintenance for Custom Field Suite)

作者: @shift
ダウンロード
  • 詳細
  • レビュー
  • インストール
  • 開発
サポート

説明

atshift Fields is a maintained and extended Custom Field Suite-compatible plugin for WordPress sites that need structured content editing without losing existing CFS data or template compatibility. It preserves the familiar CFS API, including CFS()->get(), while adding security hardening, WordPress/PHP compatibility fixes, and practical tools for clearer admin workflows.

Version 3 makes field management much more flexible for content-heavy sites. The redesigned Field Group editor supports nested groups, drag-and-drop editing, responsive layouts, and multilingual admin labels, so large editing screens can be organized in a way that is easier to build, review, and maintain.

Tab Groups, Horizontal Groups, Accordion Groups, Conditional Groups, and Loops help divide complex input screens into focused sections, place related fields side by side, show fields only when they are relevant, and manage repeated content cleanly.

Version 3 also brings native WordPress fields into field groups, including post title, content, save and publish controls, categories, tags, featured image, and post editing screen display controls. Code View, Shortcode fields, role-aware editing controls, and Classic Meta Box Placement add more options for safer, more flexible real-world editing workflows.

設定手順、フィールド値の出力例、移行メモ、実装例は atshift Fields ドキュメントサイト をご覧ください。

利用前に知っておくこと

  • これはメンテナンスビルドであり、上流版の公式リリースではありません。
  • 既存の CFS 環境を置き換える前に、必ずファイルとデータベースをバックアップしてください。
  • このメンテナンスビルドを有効化する前に、元の Custom Field Suite プラグインを停止してください。
  • 本番サイトで使用する前に、ローカル環境またはステージング環境でテストしてください。
  • CFS は保存済みの値を返します。テーマテンプレートで出力する際は、引き続き WordPress のエスケープ関数で出力を保護してください。
  • 追加されたフィールドタイプは、上流版 CFS 2.6.7 では利用できません。

フィールドタイプ

  • 単一行テキスト
  • 複数行テキスト
  • ビジュアルエディター
  • タブグループ
  • Loop (繰り返しフィールド)
  • 横並びグループ
  • アコーディオングループ (開閉グループ)
  • 条件分岐グループ
  • 電話番号
  • メールアドレス
  • ハイパーリンク
  • URL
  • 数値
  • セレクト
  • チェックボックス
  • 真偽値
  • ラジオボタン
  • 日付
  • 時刻
  • ファイルアップロード
  • 写真ギャラリー
  • カラー
  • コード表示
  • ショートコード
  • Embed Code
  • Classic Meta Box Placement
  • 投稿タイトル (WordPress 標準タイトル)
  • 本文 (WordPress 標準本文)
  • 保存・公開 (WordPress 標準の保存・公開)
  • 投稿カテゴリー (標準 / グローバル)
  • 投稿タグ (WordPress 標準タグ)
  • アイキャッチ画像 (WordPress 標準のアイキャッチ画像)
  • ターム
  • 関連
  • ユーザー

このメンテナンスビルドで追加された機能

  • 既知の CFS 2.6.7 の脆弱性クラスに対するセキュリティ強化。
  • PHP 8.2 以降および WordPress 管理画面との互換性修正。
  • チェックボックスとラジオボタンフィールド。
  • 形式検証に対応した電話番号、メールアドレス、数値、URL、時刻フィールド。
  • 時・分のセレクトメニューを持つ時刻フィールド。
  • 並び替え可能なメディア選択とギャラリー向けの出力データに対応した写真ギャラリーフィールド。
  • CFS フィールドグループ内で使える、WordPress 標準の投稿タイトル、本文、保存・公開、標準および共有タクソノミーの投稿カテゴリー、投稿タグ、アイキャッチ画像フィールド。
  • 複数のフィールドを横並びに配置でき、均等配置と左寄せ配置を選べる横並びグループフィールド。
  • 投稿編集画面で子フィールドを開閉可能なセクションに整理できるアコーディオングループフィールド。
  • 既存フィールドの直下、または Loop、横並びグループ、アコーディオングループ内へ新しいフィールドを直接追加できるフィールドグループ編集ボタン。
  • タブ、Loop、横並びグループ、アコーディオングループの構造を識別しやすくする色分けバッジと範囲背景。
  • フィールドグループ編集画面でのドラッグ&ドロップとタブ範囲処理の改善。
  • インラインの検証メッセージとエラー概要を追加し、該当するタブ、Loop、アコーディオングループを開いて、選択した不正なフィールドへスクロールします。
  • 一般的な編集作業の流れに合わせてグループ化したフィールドタイプ一覧。
  • 入れ子フィールドが投稿編集画面から消えるケースを減らすための、フィールドグループの親子関係同期。
  • 配置ルールが設定されていないフィールドグループへの警告表示。
  • 単一行テキスト、電話番号、メールアドレス、ハイパーリンク、URL フィールドのプレースホルダー設定。

使い方

  • 管理画面の「Field Groups」メニューを開きます。
  • 1つ以上のカスタムフィールドを含むフィールドグループを作成します。
  • 「Placement Rules」ボックスで、フィールドグループを表示する場所を選択します。
  • テーマテンプレートで CFS の get メソッドを使用し、カスタムフィールドの値を表示します。

例:

<?php echo esc_html( CFS()->get( 'my_text_field' ) ); ?>

リッチテキストフィールドでは、wp_kses_post() など適切な HTML サニタイズ関数を使用してください。

タブグループについて

タブグループは、投稿編集画面のフィールドをタブ付きセクションに分割するためのレイアウトフィールドです。

そのタブ内に表示したいフィールドの前にタブグループを配置します。次のタブグループを置くと、新しいタブセクションが始まります。

横並びグループについて

横並びグループは、投稿編集画面で複数の子フィールドを横に並べるためのレイアウトフィールドです。画面幅が狭い場合、フィールドは縦に積み重なって表示されます。

横並びグループは、複数の通常フィールドを含めることを想定しています。タブ、Loop、アコーディオン、条件分岐グループ、他の横並びグループを横並びグループ内に配置することはできません。

アコーディオングループについて

アコーディオングループは、投稿編集画面で子フィールドを開閉可能なセクション内に配置するためのレイアウトフィールドです。初期状態で開くように設定できます。

タブをアコーディオングループ内に配置することはできません。

条件分岐グループについて

条件分岐グループは、投稿編集画面で選択されたラジオボタンまたはドロップダウンの値に応じて、異なる子フィールドを表示するためのレイアウトフィールドです。

フィールドグループ編集画面では、子フィールドを条件ごとのエリアに割り当てられます。タブや他の条件分岐グループを条件分岐グループ内に配置することはできません。

Classic Meta Box Placement notes

Classic Meta Box Placement は、クラシック形式のサードパーティ製メタボックスを atshift Fields のフィールドグループ内の任意の位置へ移動するためのスロット型フィールドです。CFS フィールド値は保存せず、保存処理、nonce、権限、スクリプト、スタイルは元のメタボックスプラグイン側が引き続き担当します。

ブロックエディター専用パネルは対象外です。WordPress 標準メタボックスや CFS 内部メタボックスは、移動非推奨として表示されます。

配置後は、atshift Fields のフィールドラベルと説明が見出しになるため、元のメタボックスヘッダーは非表示になります。表示幅はサイド相当 (320px)、50%、75%、100% から選択でき、狭い画面では常に100%幅で表示されます。

WordPress 標準フィールドについて

投稿タイトル、本文、保存・公開、投稿カテゴリー、投稿タグ、アイキャッチ画像は、WordPress 標準のオブジェクトを直接編集します。CFS 専用の投稿メタフィールドではありません。

投稿カテゴリーでは、子カテゴリーの選択時に親カテゴリーも選択できます。親カテゴリーの選択を解除すると、その子カテゴリーの選択も解除されます。すべてのカテゴリーが解除された場合は、WordPress のデフォルトカテゴリーが復元されます。

セキュリティメンテナンスについて

このパッケージには、上流版 2.6.7 のコードベースに対するローカルなセキュリティ強化と互換性強化が含まれています。

このメンテナンス作業では、Loop フィールドのコード実行、Term フィールドの SQL インジェクション、CFS フォームのタイトル・本文に関する保存型 XSS、通常の編集権限チェックなしに CFS フォームから既存投稿を更新できる問題など、既知の脆弱性クラスに対応しています。

これらの変更は、CFS 標準フィールドタイプ、追加フィールドタイプ、元の 2.6.7 コードベースからのアップグレード手順に対してローカルで検証済みです。このパッケージは WordPress.org プラグインディレクトリ向けにも調整され、公式の WordPress.org SVN リリースフローを通じて公開されています。ただし、WordPress.org での公開は独立した第三者セキュリティ監査の代わりにはなりません。

再配布とライセンス

このメンテナンスビルドは、上流版プラグインと同じ GNU General Public License version 2 (GPLv2) のもとで配布されます。GPLv2 に従い、改変版を含めてこのパッケージを使用、複製、変更、再配布できます。

When redistributing this package, keep the GPLv2 license notice, preserve the original author attribution, include the source code, and make clear that this is a maintained and extended build by @shift.

ドキュメントとサポート

  • ドキュメントサイト
  • フィールドグループ設定ガイド
  • フィールド値の出力リファレンス
  • 実装例
  • 開発リポジトリ
  • 元の Custom Field Suite ソース

Related Projects

  • atshift User Profile Fields – organize WordPress user profile fields with a similar field-building experience.
  • atshift Freeform Login – design the WordPress login screen and place a matching login form on site pages.

スクリーンショット

フィールドタイプ選択メニューと WordPress 標準フィールドタイプを備えたフィールドグループ編集画面。
フィールドタイプ選択メニューと WordPress 標準フィールドタイプを備えたフィールドグループ編集画面。
タブ、アコーディオン、条件分岐グループ、Loop、横並びグループを使った入れ子フィールドグループ。
タブ、アコーディオン、条件分岐グループ、Loop、横並びグループを使った入れ子フィールドグループ。
WordPress の固定ページ編集画面に表示される専用フィールドグループ入力。
WordPress の固定ページ編集画面に表示される専用フィールドグループ入力。
投稿タイプ、投稿フォーマット、ユーザー権限グループ、投稿、タクソノミーターム、ページテンプレートに対応する配置ルール。
投稿タイプ、投稿フォーマット、ユーザー権限グループ、投稿、タクソノミーターム、ページテンプレートに対応する配置ルール。
編集画面レイアウト、標準セクションの表示、ロール別の非表示制御に対応するエクストラ表示設定。
編集画面レイアウト、標準セクションの表示、ロール別の非表示制御に対応するエクストラ表示設定。

インストール

  1. 既存の Custom Field Suite 環境を置き換える前に、ファイルとデータベースをバックアップしてください。
  2. このメンテナンスビルドを有効化する前に、元の Custom Field Suite プラグインを停止してください。
  3. WordPress プラグインディレクトリから atshift Fields をインストールして有効化するか、プラグインフォルダーを /wp-content/plugins/ にアップロードします。
  4. 管理画面で atshift Fields / Field Groups を開きます。
  5. フィールドグループを作成してフィールドを追加し、表示したい編集画面に合わせて配置ルールを設定します。
  6. 保存されたフィールド値を表示するには、テーマテンプレート内で CFS()->get() を使用します。

詳しいガイドと実装例は ドキュメントサイト をご覧ください。

FAQ

これは Custom Field Suite の公式後継版ですか ?

いいえ。atshift Fields は GPLv2 で配布される、独立した非公式の互換メンテナンス・拡張ビルドです。

元の Custom Field Suite を atshift Fields に置き換えられますか ?

多くの場合は可能です。主なデータ構造と API 互換性は維持していますが、置き換える前に必ずサイトをバックアップし、ステージング環境でテストしてください。

atshift Fields は元の Custom Field Suite API を維持していますか ?

はい。CFS()->get()、get_field_info()、get_reverse_related()、save()、find_fields()、form() など、既存テーマで使われる主な API を維持しています。

どの翻訳が同梱されていますか ?

The release package includes bundled translation files for ca, de_DE, en_GB, es_ES, fa_IR, fr_FR, hu_HU, it_IT, ja, ko_KR, nl_NL, pl_PL, pt_BR, ru_RU, tr_TR, zh_CN, and zh_TW.

ドキュメントはどこで見られますか ?

設定ガイド、出力例、API ノート、実装例は atshift Fields ドキュメントサイト をご覧ください。

評価

このプラグインにはレビューがありません。

貢献者と開発者

atshift Fields (Maintenance for Custom Field Suite) はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者
  • @shift
  • Matt Gibbs

“atshift Fields (Maintenance for Custom Field Suite)” は2ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“atshift Fields (Maintenance for Custom Field Suite)” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログを RSS で購読してみてください。

変更履歴

3.0.5.1

  • Fixed confirmation dialog cancellation so Loop row and Field Group field add/delete actions are not performed when cancelled.
  • Confirmed compatibility with WordPress 7.1 RC3.

3.0.5

  • Added confirmation prompts before adding Loop rows or Field Group fields, and before deleting fields in the Field Group editor.
  • Added Translate and Output Reference links to the Plugins screen, and updated the author link to the atshift Fields documentation site.

3.0.4.3

  • Added a Settings shortcut to the Plugins screen action links.

3.0.4.2

  • Added a Close button to each Loop row action area.

3.0.4.1

  • Fixed Save / Publish field submission so actions follow the native WordPress save flow, preventing unintended draft saves and unnecessary leave-page warnings.
  • Fixed required Post Categories validation so the WordPress default category alone does not satisfy the requirement.

3.0.4

  • Added a dedicated Embed Code field for iframe-based embeds such as maps, so sites that previously used text fields or textareas for embed code can migrate safely under the strengthened sanitization.

3.0.3.1

  • Fixed Save / Publish field updates so published, scheduled, or private posts are not unintentionally moved to Pending Review when edited by users without publish capability.
  • Fixed native Post Title field updates so existing slugs are preserved unless explicitly changed by WordPress.

3.0.3

  • Improved layout refresh for WYSIWYG and auto-resizing textarea fields when Accordion, Conditional, or Loop sections become visible.

3.0.2.8

  • Fixed WYSIWYG field output so escaped paragraph HTML is normalized before CFS()->get() formatting.
  • Normalized escaped rich text HTML before saving WYSIWYG and native Post Content field values.

3.0.2.7

  • Fixed WYSIWYG editor content display so paragraph HTML opens normally in the visual editor instead of appearing as escaped tags.
  • Improved WYSIWYG editor font styling on admin edit screens.

3.0.2.6

  • Improved field heading styling so labels stand out more clearly while following the user’s admin color scheme.
  • Improved Loop row spacing, color-scheme-aware row styling, and safer row action controls.
  • Improved Loop row heading behavior and added guidance for dynamic row labels.
  • Improved required-field error feedback so users can more easily find and resolve validation errors.
  • Added an Extra display setting for hiding Global Categories.
  • Removed the default value setting from the Shortcode field.
  • Fixed a WYSIWYG initialization warning that could interrupt later field scripts.

3.0.2.5

  • Improved field placement when dragging fields into lower Tab Groups.
  • Improved where the bottom “Add New Field” button places fields when Tab Groups are present.
  • Fixed field addition issues when multiple Loop fields exist on the same field group.
  • Improved mobile spacing for nested category items.
  • Added a warning for empty Tab Group labels.
  • Adjusted several edit-screen colors to follow the user’s admin color scheme.
  • Improved Textarea height adjustment for saved long content.
  • Added missing translations.

3.0.2.4

  • Added warnings and safeguards for some sites with many fields where field values or placement rules may fail to save.
  • Added an option to add categories from the Post Categories (Standard / Global) field.
  • Other minor fixes.

3.0.2.3

  • Improved native title settings, frontend visual editor fonts, Extras display settings, and Tab Group editing UI.

3.0.2.2

  • Refined the Save / Publish field status display so selected status changes are applied only when saving.
  • Improved Save / Publish field labels for publish and schedule actions.
  • Added preview button support for draft and pending posts in the Save / Publish field.
  • Prevented autosave requests from applying Save / Publish field status changes.
  • Restored WordPress-standard left alignment for the trash link in the Save / Publish field.
  • Fixed password field placement in the Save / Publish visibility controls.
  • Updated bundled translation files.

3.0.2.1

  • Added an option to require a condition selection in Conditional Group fields.
  • Added a required-field indicator for Accordion Group headings when required child fields are included.
  • Added Post Categories options to hide the category search box and selected-only filter.
  • Fixed a conflict between default category handling and parent/child auto-selection in Post Categories fields.
  • Refined the Save / Publish field layout and visual presentation.
  • Updated bundled translation files.

3.0.2

  • クラシック形式のサードパーティ製メタボックスを atshift Fields のフィールドグループ内に配置できる「メタボックス配置(Classic)」フィールドを追加しました。

3.0.1.1

  • WordPress.org のリリースパッケージに翻訳ファイルを同梱しました。

3.0.1

  • CFS()->get() でショートコード実行済みの出力を返すショートコードフィールドを追加しました。
  • ショートコード編集のロール別制御を追加しました。権限のないユーザーにはフィールドを表示せず、他のフィールド保存時も既存のショートコード値を保持します。
  • クラシック投稿編集画面のスクリーンオプションのレイアウトを強制的に1列にするエクストラ表示設定を追加しました。
  • 不要な標準編集セクションをセクション単位のロール指定で非表示にできる、サイド / メインのエクストラ表示設定を追加しました。

3.0.0

  • グループ階層、余白、ドラッグ&ドロップ動作、レスポンシブレイアウトを含め、フィールドグループ編集画面の UI を再設計しました。
  • タブ、アコーディオン、Loop、横並び、条件分岐の各グループの入れ子構造を分かりやすくしました。
  • 条件分岐グループに条件ごとのドロップエリアを追加し、ドラッグしたフィールドを各条件へ割り当てやすくしました。
  • グループフィールドと WordPress 標準フィールドのフィールド名を自動処理し、不要な手入力を減らしました。
  • 投稿タイトル、本文、保存・公開、投稿カテゴリー、投稿タグ、アイキャッチ画像の WordPress 標準フィールド対応を改善しました。
  • 保存・公開のステータス、公開状態、公開日時、下書き、公開、更新の動作を調整しました。
  • 投稿カテゴリー (標準 / グローバル) と投稿タグの表示および選択動作を改善しました。
  • 写真ギャラリー、ファイルアップロード、画像フィールドの管理画面プレビューと処理を改善しました。
  • atshift Fields Tool の UI を更新し、エクスポート / インポート / リセットの案内と翻訳を分かりやすくしました。
  • 配置ルール、エクストラ、ツールチップ、Select2/Selectize の表示、管理画面 UI の細部を改善しました。
  • 必須フィールドとグループ構造の警告を調整し、問題を理解しやすくしました。
  • ブロックエディターとクラシックエディターの両環境で、メタボックス互換性と表示の安定性を改善しました。
  • 元の Custom Field Suite API と保存データの互換性を維持しながら、内部の PHP/CSS/JavaScript を整理しました。
  • nonce と権限チェックを含め、管理画面の保存処理と AJAX 処理を強化しました。
  • 新しいフィールド、設定、警告、ツール画面に合わせて多言語翻訳を更新しました。

メタ

  • バージョン 3.0.5.1
  • 最終更新日 1日前
  • 有効インストール数 10+
  • WordPress バージョン 5.0またはそれ以降
  • 検証済み最新バージョン: 7.1
  • 言語

    English (UK)、English (US)、Russian.

    プラグインを翻訳

  • タグ
    custom fieldsfieldspostmetarelationshiprepeater
  • 詳細を表示

評価

レビューはまだ送信されていません。

Your review

すべてのレビューを見る

貢献者

  • @shift
  • Matt Gibbs

サポート

意見や質問がありますか ?

サポートフォーラムを表示

  • WordPress とは
  • ニュース
  • ホスティング
  • プライバシー
  • ショーケース
  • テーマ
  • プラグイン
  • パターン
  • Learn
  • サポート
  • 開発者
  • WordPress.tv ↗
  • 参加・貢献
  • イベント
  • 寄付 ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

日本語

  • X (旧 Twitter) アカウントへ
  • Bluesky アカウントへ
  • Mastodon アカウントへ
  • Threads アカウントへ
  • Facebook ページへ
  • Instagram アカウントへ
  • LinkedIn アカウントへ
  • TikTok アカウントへ
  • YouTube チャンネルへ
  • Tumblr アカウントへ
Code is Poetry.
The WordPress® trademark is the intellectual property of the WordPress Foundation.