Linux 软件免费装
Banner图

Fieldloom Custom Fields

开发者 sapta2022
更新时间 2026年11月15日 16:12
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

blocks custom fields flexible content repeater options page

下载

0.14.0

详情介绍:

Fieldloom lets you build field groups in the WordPress admin and show them wherever you need them: on posts and pages, on user profiles, on taxonomy terms, on options pages and inside your own Gutenberg blocks. Field types (35) Text, textarea, WYSIWYG, number, range, email, URL, password, select, checkbox, radio, button group, true/false, image, file, gallery, date, time, date-time, colour, link, oEmbed, Google Map, post object, page link, user, relationship, taxonomy, message, tab, accordion, group, clone, repeater and flexible content. Features

安装:

  1. Upload the plugin to /wp-content/plugins/fieldloom/, or install it from the Plugins screen.
  2. Activate it through the Plugins screen.
  3. Go to Field Groups > Add New, add fields and choose where they should appear.
  4. In your theme, print values with cfstudio_get_field( 'field_name' ) or the [cfstudio field="field_name"] shortcode.

升级注意事项:

0.14.0 Renamed to Fieldloom Custom Fields. The shortcode is now [cfstudio] and local JSON files move to the uploads folder; turn local JSON on again under Tools. 0.13.1 Fixes custom blocks losing their field group after the 0.13.0 prefix rename. 0.13.0 Template functions were renamed from cfs_ to cfstudio_. Update your theme code after upgrading; saved data is migrated automatically. 0.12.4 Fixes repeater and media fields inside custom blocks on current WordPress versions.

常见问题:

How do I show a field on the front end?

Use cfstudio_get_field( 'name' ) in a template, or [cfstudio field="name"] in content. For options pages use [cfstudio field="name" post_id="option"]; for users post_id="user_1"; for terms post_id="term_5".

How do I add a custom block?

Register it with cfstudio_register_block() in your theme or a small plugin, then create a field group whose location rule is "Block is equal to" your block.

Does the Google Map field need an API key?

No. Without a key you type the address, latitude and longitude. With a Google Maps API key (Field Groups > Tools) the editor shows a searchable, draggable map.

Is it multisite compatible?

Multisite has not been tested.

Where is my data stored?

Values are saved as post, user, term or option meta in your own database. The only external service is Google Maps, used by the optional Google Map field; see the External services section.

Where are local JSON files saved?

Local JSON is off by default. When you turn it on under Field Groups > Tools, field groups are saved as JSON files in wp-content/uploads/fieldloom/json/. The plugin does not write to theme or plugin folders.

更新日志:

0.14.0 0.13.1 0.13.0 0.12.4 0.12.3 0.12.0 – 0.12.2 0.11.0