説明
Custom Field Suite (CFS) を使用すると、投稿にカスタム フィールドを追加できます。軽量で、実環境でテストされています (壊れることはほとんどありません)。
知っておくべきこと
- サポートは提供していません。
- これは無料のプラグインです。販売しているものはありません。
- CFS には14のフィールドタイプが含まれています。これ以上追加する予定はありません。
- すべての追加機能が必要な場合は、ACF を使用してください。
フィールドタイプ
- テキスト
- テキストエリア
- WYSIWYG
- 日時
- カラー
- 真 / 偽
- セレクト
- ファイルのアップロード
- 関係
- ターム
- ユーザー
- ループ(繰り返し可能なフィールド)
- ハイパーリンク
- タグ (グループフィールド)
使い方
- 「フィールドグループ」の管理メニューを表示する
- 1つ以上のカスタムフィールドを含むフィールドグループを作成する
- フィールドグループを表示する場所を配置ルールボックスを使って選ぶ
- カスタムフィールドを表示するには、テンプレートファイルで get メソッドを使用します。
リンク
評価
2023年5月26日
The plugin is worthy of attention, it copes with certain tasks better than ACF
2023年3月30日
At the same time that it is simple, it is very powerful and helps a lot in development, especially with the field repeater.
Thanks to the developer.
2022年10月6日
1 reply
CFS()->get() - не работает, возвращает пустой массив, CFS()->get() === array()
по Id работает
2022年9月27日
1 reply
Hello, greetings.
Congratulations for the plugin, despite its simplicity, it fulfills to add custom things to wordpress.
I am adding a custom field similar to the user field, extending the cfs_field class.
The only problem I saw is that when I add the limitations, it doesn't take them in the backend.
from what I saw in the code, it is because there is no filter that allows other fields to be accepted, that is what I see so far.
the code to which I refer is in
plugins\custom-field-suite\includes\form.php
line 344
where I have to add a filter as follows
php
$typesValidation = apply_filters('cfs_form_types_validation', [ 'relationship', 'user', 'loop' ]);
if ( in_array( $field->type, $typesValidation ) ) {
I still can't find another way to do this without modifying the plugin code
2022年9月21日
Searching, testing that and that other but always the features I needed in other plugins were premium... then I found this fantastic plugin, clean, lite, no premium adds, completely free and has everything I need it like repeatable group of fields! Thanks to the developer for this!
2022年5月7日
It can do almost everything I need. The only thing is - you can upload a file, but you can't pick already uploaded file from a library.
貢献者と開発者
変更履歴
2.6.3
- Fixed: possible placement rules XSS (props Patchstack)
2.6.2.1
- Confirmed 6.0.1 compatibility
2.6.2
- Removed broken links, confirmed 5.9 compatibility
2.6.1
- Fixed: PHP8 warnings
2.6
New: moved CFS into “Settings” menu
Improved: relationship fields now only run 1 query to retrieve related posts
Improved: code modernization
Improved: styling tweaks
Fix: “Posts” field group rule ajax wasn’t loading