=== Modern Fields • Custom Fields for Gutenberg ===
Contributors: MaximeBJ
Tags: custom fields, metabox, acf, options, block bindings
Requires at least: 6.8
Tested up to: 7.0
Stable tag: 1.3.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom Fields, options pages and metaboxes for the block Editor to improve your full site editing experience.

== Description ==
Modern Fields™ brings a visual field builder to the WordPress block editor without sacrificing flexibility.

Create reusable field groups, assign them to posts, pages, custom post types, or options screens, and render them with purpose-built Gutenberg blocks & block bindings. 

No code required! Everything is built with native WordPress APIs so it feels at home in your admin and keeps performance top of mind.

[youtube https://youtu.be/vMYajLYcwRA]

=== Highlights ===

* Build field groups visually with native WordPress UI components.
* Choose from a growing library of field blocks: text, textarea, toggle, number, range, button group, image, color picker, and more.
* Attach field groups to post types, page templates, or options screens with fine-grained location rules.
* Manage permissions with role-aware controls for who can edit or manage field groups.
* Output field data in templates with a specific meta bindings block.

=== What are the advantages of using Modern Fields rather than Advanced Custom Fields (ACF)? ===

✔ Native controls from the block Editor for a better experience
✔ Design field groups visually within the block editor
✔ Configure your fields more quickly
✔ More locations to display field groups (modal, panel)
✔ Ready-to-use patterns for stunning options pages
✔ Display fields in your template without code with the Field Value block, no need to code
✔ Use query block to filter results by meta
✔ And more to come in the premium version

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/modern-fields` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **Modern Fields Field Groups** to create your first group and start adding field blocks.
4. Assign your field group to the desired location and publish it.
5. Edit a post or page that matches your rules to start filling in the fields.
6. Use the Field value block to display a meta in your content or a template.

== Frequently Asked Questions ==

= Does Modern Fields work with the Classic Editor? =
Modern Fields is built specifically for Gutenberg but also works on classic editor through metaboxes.

= How do I render field values on the frontend? =
Use the Field value block to show any value from your fields from the current post, post author or options pages. No code required! It will bind the data to your templates automatically.
You can also use these functions in your custom blocks or template : `the_field()` or `get_field()`

= Can I limit who can manage field groups? =
Yes. Permissions integrate with WordPress roles and capabilities. Only users with the appropriate capabilities can create or edit field groups.

== Screenshots ==
1. The field group builder with multiple block types.
2. An options page powered by Modern Fields.
3. The field groups list page
4. The block editor showing contextual field blocks alongside content.

== Changelog ==

= 1.3.0 =

New:

* New Dashboard location: display a field group as a widget on the WordPress dashboard. Values are saved as site options (administrators only)
* Field values are no longer publicly exposed in the REST API. Enable the new 'Expose through API' option per field to opt in
* Image field: choose the display ratio

Fixed:

* Filters and trash has been fixed in list views (Field groups, CPT, Taxonomies and blocks)
* Fixed a fatal error when editing a post whose author no longer exists or was never set (e.g. content created through WP-CLI or the API)
* Fixed a blank options page / dashboard widget when the group contains a checkboxes field that was never saved
* The field groups list now shows "No author" instead of an empty cell for groups without an author

= 1.2.0 = 
New:
* Field groups are now available in WooCommerce products & post types with classic editor
* New filters to change the value returned by getField(): `modern-fields/get_field/value`and `modern-fields/get_field/name=field-name`
* Expose render API to prepare for add-ons

Improved:
* Improved RichText field styles in narrow area + color and link dropdowns

Fixed: 
* Fixed binding meta to a button in Field value block

= 1.1.0 =
New:
* The whole Modern Fields admin is now a single-page app: switching between Field Groups, Post Types, Taxonomies, Blocks, Import/Export and Settings no longer reloads the page.
* Trash support: move field groups, post types and taxonomies to the trash, restore them, or delete them permanently, with an Active/Trash filter in each list.

Improved:
* Validation notices now appear at the bottom-center of the screen, matching WordPress 7.0.
* Cleaner empty states in the admin lists (column headers are hidden when a list has no items).
* Main menu without icons on small screens (< 1024px) for a tidier layout.

Fixed:
* Fixed regression with field name not being slugified, causing some fields to not be displayed.
* Fixed issues with groups locations not correctly displayed
* Fixed inconsistencies with the Modern Fields admin menu.
* Fixed scroll issues in the Post Types, Taxonomies and Blocks pages.
* Fixed an error shown on a field group with no fields yet.
* Fixed links to Post Types, Taxonomies, Blocks and field groups after the single-page rework.
* Fixed a crash in the location picker when a post or page has no title.
* Fixed saving Settings when a palette color was added without picking a color.
* Fixed inconsistencies with Modern Fields admin menu
* Fixed scroll issues in CPT, taxonomies and blocks pages
* Fixed main menu on small screens
* Fixed error on empty field group

= 1.0.4 =
* Prepare for Modern Fields premium version release
* Fixed an issue with Custom Post Types: private with show_ui=true are now showing in the list
* Fixed issues where Modern Fields was overriding some theme.json defaults
* Some code optimization

= 1.0.3 =
* Fix: native blocks (like Group) no longer lose their color and typography options in the post/page editor when the plugin is active.
* Fixed row selection when clicking the title or toggle in the field groups list (Dataview).
* Fixed image block styles inside field locations.
* Moved the menu below the header for clearer navigation.
* Metabox accordions are now handled natively.

= 1.0.2 = 
* New: duplicate field group from the groups list
* New: filter `modern-fields/permissions` to change the minimum role permission to acces the plugin
* Added connectors with the Pro version
* Improved some styles for WordPress 7.0
* Improved the date time field according to choosen format
* Improved the RichText field to avoid issues in the block editor
* Improved group list table (DataViews)
* Improved: specific specific posts & pages selector now shows draft and pending posts
* Harmonized the filters names
* Fixed meta label in block bindings
* Fixed a crash when saving settings
* Fixed fields label and description encoding
* Fixed default values nto showing in some cases

= 1.0.1 = 
* New: added import and export via WP CLI
* Fixed an issue with scripts loaded outside the plugin pages
* Fixed image binding in Field value block
* Fixed issue with default CPT icon
* Fixed an issue with display mode option in select field
* Fixed an issue where default fields values didn't showed up
* Fixed admin menu appearing in options pages when it shouldn't
* Fixed a bug on location selector when invalid location is set

= 1.0.0 =
* Official stable release!
* Removed beta features
* Fixed issue with locations in CPT
* Stability improvements & bug fixes

= 0.9.1 =
* New: JSON sync for Custom Post Types and Taxonomies with the theme

= 0.9.0 =
* New: Register Custom Post Types and Taxonomies from the admin
* New: Navigation menu between Modern Fields sections

= 0.8.0 =
* New: import / export groups in JSON
* New: Sync fields with your theme in /mf-json/ folder

= 0.7.3 =
* Added an onboarding popup when creating your first field group 
* Usual roles are pre-selected in location selector 
* Fixed duplicate colors in palette field
* Fixed RichText overflow in narrow area like inspector
* Fixed inspector area width
* Fixed image binding with the field value block

= 0.7.2 = 
* Fixed vendor prefixing on composer dependencies

= 0.7.1 =
* Fixed an error with user name in fields list
* Fixed a potential conflict with the fields blocks and third party blocks
* Fixed duplicate fields has different unique ids now
* Fixed default color palette in Modern Fields settings

= 0.7 =
* New image field option: compact UI
* Fixed color picker when there are custom colors set in appearance 
* Fixed missing translations in JavaScript

= 0.6 =
* New fields: checkboxes, radio, select/combobox, multi token and email
* More reliable field data structure

= 0.5.5 =
* Fixed deployment with PHP dependencies

= 0.5.2 =
* Added wp.org assets

= 0.5.1 =
* First deploy

= 0.5.0 =
* Initial beta release.

== Upgrade Notice ==

== Copyright & Trademark ==

"Modern Fields"™ and the Modern Fields logo are trademarks of Dysign.
Copyright © 2024–2026 Dysign. All rights reserved.

The plugin source code is licensed under the GNU General Public License v2 (or
later). That license does NOT grant any right to the "Modern Fields" name or
logo: they may not be used to identify, brand, or promote derivative or forked
products without prior written permission from Dysign.