Linux 软件免费装
Banner图

Modern Fields, Custom Fields for Gutenberg

开发者 MaximeBJ
更新时间 2026年11月13日 00:05
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

custom post types custom fields acf metabox block bindings

下载

0.9.0 1.5.1 1.5.3 1.6.0 0.6.0 0.7.3 1.0.0 0.5.5 1.0.1 1.0.4 0.8.0 1.0.2 0.7 0.7.1 0.7.2 0.5.3 0.6 0.9.1 1.0.3 1.1.0 1.2.0 1.3.0 1.4.0 1.4.1 1.5.0 0.5.1 0.5.2

详情介绍:

Modern Fields™ is a custom fields plugin built for the WordPress block editor. Create your field groups by designing them visually, manage them with the native WordPress interface, and consume them without code, through block bindings and the core blocks you already use. Coming from Advanced Custom Fields or Secure Custom Fields? Modern Fields speaks your language: get_field(), the_field(), field names as you write them, ACF-shaped map values. Modern Fields Pro migrates a whole site from ACF or SCF in a few steps. [youtube https://youtu.be/vMYajLYcwRA]

安装:

  1. Install Modern Fields from the Plugins › Add New screen, or upload the plugin files to the /wp-content/plugins/modern-fields directory.
  2. Activate the plugin through the Plugins screen.
  3. Go to Modern Fields › Field Groups to create your first group, and add fields as blocks.
  4. Choose where the group shows (posts, pages, terms, users...) and publish it.
  5. Edit a post or a page matching your rules to fill the fields in.
  6. Display a value with the Field Value block or a block binding, or with get_field() in PHP.

屏幕截图:

  • An options page powered by Modern Fields Pro.
  • The field groups list page
  • The block editor showing contextual field blocks alongside content.

升级注意事项:

1.6.0 Back up your site first. Field groups now read their fields from the group itself: going back to an earlier version means saving each field group again. Time fields no longer default to 12:00. Modern Fields Pro 1.1.0 and older must be updated.

常见问题:

Is Modern Fields an alternative to ACF?

Yes. Modern Fields covers what most sites use ACF for (field groups, location rules, field types, get_field() and the_field()), with field groups designed in the block editor and values displayed through block bindings. Its values are standard WordPress metadata.

Can I migrate from ACF or Secure Custom Fields?

Yes, with the ACF Migration (beta) of Modern Fields Pro, from ACF or ACF Pro 6.1 or later, or from Secure Custom Fields. It reads your field groups, shows a plan of what will be imported and what will not, then moves the field groups, their values, options pages, post types and taxonomies. You can keep the original values beside the new ones, or put them back afterwards. Flexible Content and ACF blocks are not imported yet. Back up your site and try the migration on a staging copy first.

Does Modern Fields work with the Classic Editor?

Yes. Modern Fields is built for the block editor, and field groups also show in the classic editor through metaboxes, WooCommerce products included.

How do I display field values on the front end?

Use the Field Value block in your content or your templates: it binds a field to a core block (Paragraph, Heading, Image or Button). No code required. In PHP, get_field() and the_field() read the values in your templates and custom blocks.

Where are the values stored?

In the standard WordPress tables: post, term and user metadata, and options for dashboard widgets. A value is stored under its field's name, so get_post_meta() reads it too.

Can I limit who can manage field groups?

Yes. Only the users who administer Modern Fields can create or edit field groups, and each field group chooses the roles that fill it in. Permissions integrate with WordPress roles and capabilities.

更新日志:

1.6.0 New: Improved: Fixed: 1.5.3 Security: 1.5.1 Improved: Fixed: 1.5.0 New: Improved: Fixed: 1.4.1 Improved: Fixed: 1.4.0 New: Improved: Fixed: 1.3.0 New: Fixed: 1.2.0 New: Improved: Fixed: 1.1.0 New: Improved: Fixed: 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.9.1 0.9.0 0.8.0 0.7.3 0.7.2 0.7.1 0.7 0.6 0.5.5 0.5.2 0.5.1 0.5.0