| 开发者 | shayancode |
|---|---|
| 更新时间 | 2026年2月25日 05:08 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
get_field( 'my_field' ) — retrieve any field value.
the_field( 'my_field' ) — echo a field value directly.
Template Examples
Simple field:
Repeater loop:
User field (with prefix):
Full API reference and guides: openfields.codeideal.com/docs
ACF-Compatible API
If you know ACF, you already know Open Fields. The template API uses the same function names:
get_field() / the_field()get_fields() / update_field() / delete_field()have_rows() / the_row() / get_sub_field() / the_sub_field()get_row() / get_rows() / reset_rows() / get_row_index()get_field_object() / get_sub_field_object()cofld_get_field()) that is always available regardless of other plugins.
Field Types
pnpm install && pnpm build (Vite + TypeScript)codeideal-open-fields folder to /wp-content/plugins/Yes. Every feature is free. No premium version, no upsells, no locked fields.
Yes. Both plugins store data as standard WordPress post meta. When ACF is active, Open Fields does not redefine ACF's functions — there are no conflicts.
Use get_field( 'field_name' ) or the prefixed cofld_get_field( 'field_name' ). Works exactly like you'd expect.
Yes. Any public or private post type registered in WordPress.
Standard WordPress meta is used, so Elementor, Bricks, Beaver Builder, and others can read the data via their dynamic data features.