1.4.0
Requires Modern Fields 1.6.0 or higher.
New
- ACF Migration (beta): a new ACF Migration screen moves a site from Advanced Custom Fields to Modern Fields in five steps (Source, Plan, Values, Import, Report), and wp modern-fields acf-import runs the same migration from WP-CLI. It works with ACF and ACF Pro 6.1 or later, and with Secure Custom Fields
- ACF Migration: field groups are read through ACF, those the theme registers in PHP or Local JSON included, or from the theme’s acf-json files. Nothing is written before the plan, which shows each group as ready, partly supported or not supported, with what is left out and why
- ACF Migration: 37 ACF field types are mapped (repeater, group, clone, gallery, relationship, link, Google Map, WYSIWYG, Color Palette add-on…), with their layout (widths, tabs, accordions, messages), conditional logic, location rules and roles. Flexible Content and ACF blocks are not imported
- ACF Migration: options pages, post types and taxonomies are taken over with their settings, under the same keys, so content and terms stay attached
- ACF Migration: a bidirectional relationship keeps one bidirectional side and becomes a Reverse Relation field on the other, get_field() working on both
- ACF Migration: keep ACF’s values next to the new ones, or convert them in place, for all fields or field by field. Values move in batches that resume after an interruption, and “Going back to ACF” puts back every value replaced
- ACF Migration: a theme scan lists, with file and line, what the theme and must-use plugins need ACF for (ACF functions, classes extending ACF’s, Extended ACF, ACF Builder, ACF Composer, Timber templates, field keys passed to get_field())
- ACF Migration: one action switches get_field() and the_field() to Modern Fields, deactivates ACF and checks the home page. A cleanup then removes the rows ACF leaves behind, counted first
- Options pages: a page can sit under the Dashboard, Posts, Media, Pages, Comments or Users menu, or under another options page, and open to the roles of its field group
- Options pages: Cmd+S / Ctrl+S saves the page
- Translations: Modern Fields Pro ships in French, Spanish, German and Italian
Improved
- Relation field: no Bidirectional toggle to switch on any more. A field keeps track of the posts pointing at each post it selects as soon as a Reverse Relation field names it as its source, set up in one place, the group showing the reverse. A field switched on before, or by the ACF import, keeps working without any Reverse Relation field, for templates reading it with modern_fields_get_linked_posts(), and shows its toggle until switched off
Fixed
- Block Editor field inside a Repeater: it came up without its colour palette, and outside the block editor (classic editor, profiles, terms, media, dashboard, options pages) without its styles either
- Custom blocks: when the template check or the field groups of a block could not be loaded, the checklist said the template was missing and no group assigned. It now says the check failed, with a Retry button
- Repeater: a Repeater or a Reverse Relation field could be placed inside a repeater through a column or a group of its rows, where it does not work (a nested repeater’s fields do not show when filling in the content). Neither can now go anywhere inside a repeater, whether inserted, dragged, moved or pasted, and one placed there before asks to be moved out of the repeater
- Relation: in the editor, the date of a post in the search results and in the selected posts showed shifted when the browser’s timezone differed from the site’s (a post published at 00:30 on October 27 showed October 26). It now shows the publication date as the site does
- Options pages: a page at the root of the menu whose field group sets no position or icon sat at position 99 with a generic icon, while the field group editor showed position 90 and the dashboard icon. The menu now uses the values the editor shows, which it reads from the same place
- Relation: the posts of a public post type registered outside the REST API (`show_in_rest` off, as is common for post types edited in the classic editor) could not be searched, the post type was missing from the field settings, and the posts already linked showed as “#123, unavailable”. They are now searched, offered and named like any other, with their date and featured image
- Relation Loop: a loop with no source field, or one naming a field the post does not have (deleted, renamed, or whose group no longer targets this post type), listed every post of its type on the site, while the editor previewed unrelated posts or filled in the first relation field on opening. It now lists none, and the editor asks to choose a relation field in the block settings. A loop whose relation is empty also lists none, where it could list the post with ID 1 (the “Hello world!” post of a fresh site) when that post was of the loop’s post type
- Relation Loop: the editor preview listed every post of the relation, while the site lists the loop’s first page only. It now shows the same posts as the site: the first “Posts per page” published posts of the relation, in its order, after the offset when one is set
- Block Editor field: a value could run any block (latest posts, a search form, the site title…), a block binding and shortcodes, whoever filled it, a subscriber’s profile or an options page included, and whatever blocks the field offers. A value now renders the blocks its field offers: any other block shows the content it saved, an image kept from an ACF value included, and a dynamic block shows nothing. The shortcodes of a user profile’s value no longer run: their text shows as typed, there and in the page showing the value. The values of posts, terms and options pages still run theirs, as the content of a post does. The ACF import says so on each WYSIWYG field
- Block Editor field: a field of another location sharing its name, such as a Text field of a user profile named like a Block Editor field of the posts, was rendered as blocks, running its shortcodes. Only a value of a location holding the Block Editor field is rendered now
- Advanced Field Value block, and the File, Embed, Gallery and Icon blocks showing a field: the field and the source written in the block could name any setting of the site, any user or term data, or the data of another post, private posts included, and show it to whoever saw the post. They now only show a field registered for what they name, with the same rules as the block bindings of Modern Fields. The “Post author” source of the Advanced Field Value block now shows the author of the post, as its label says, instead of the user viewing the page
1.3.3
Requires Modern Fields 1.5.0 or higher.
Security
- Query Loop filters: anyone, logged out included, could add the filter and ordering parameters to a public REST request for posts and work out the value of a field kept out of the REST API, or of another plugin’s private data, from which posts came back and in which order. They now only apply to the editor preview of a user who can edit content, and only on the fields the Query Loop panel offers for that post type. Filters saved in your Query Loops work as before on the site
Improved
- The block editor loads around 65 KB less: the Relation, Repeater and Block Editor fields are compiled once instead of once per screen
Fixed
- Saving a block stripped every backslash from its settings: accented titles came back as “u00c9vu00e9nement”, and a double quote in the title, description or keywords emptied the block’s settings and took it out of the inserter. What you type is now saved as is. Titles already damaged need retyping once
- Query Loop filters: a failed request for the filterable fields made the panel say the post type had none. The error is now shown, and the filters and ordering already saved keep applying meanwhile
- Order by Meta: an ordering on a field that was deleted, or no longer applies to the post type, showed “Default order” while it kept sorting the loop. It now stays selected, marked as unavailable
1.3.2
Fixed
- A failed update check made an already-detected update disappear from the plugins screen, for up to twelve hours. A request that timed out, a firewall page, or one site checking too often was enough. The plugin now keeps what it knows when it cannot reach the licence server, and clears it only when the server actually answers that there is nothing new
- A cancelled subscription cut the premium features off straight away instead of running to the end of the period already paid for
1.3.1
Fixed
- The licence registered itself under modern-fields.com rather than under the site’s own address, so site limits counted wrong and two installs were indistinguishable from one another. Every site now registers under its own URL, and re-registers itself once while updating: there is no key to retype
- A site whose stored licence data had been cleared kept showing a saved key that no longer did anything. The key is now read back from the plugin’s own settings and the licence reactivates on its own
- Plugin details (the changelog, and the PHP and WordPress versions the plugin needs) now reach the WordPress updates screen. They were falling back to defaults that could report a PHP requirement higher than the real one, which stopped the update from installing on sites running PHP 8.1
1.3.0
Requires Modern Fields 1.4.1 or higher.
New
- Conditional Logic block: conditions can now be combined with OR. Every row belongs to a group, the rows of a group all have to hold, and any group holding is enough, so “A and B, or C” is expressible without ever nesting
- Query Loop filters: the same grouping. Filters sharing a group are combined with AND, the groups themselves with OR
- Both: the relation is spelled out on the separator between rows, so the shape of the expression reads without counting boxes, and the group chrome only appears once a second group exists
- Query Loop filters: a date filter can compare to Today instead of a fixed date, for posts already past or events still to come. Today is resolved when the query runs, in the site’s timezone, so a saved filter is never a day out
- Date filters: the date you typed is kept while Today is selected, so switching back hands you your own date again
Improved
- Date filter operators are spelled out: “is today or after” rather than a bare symbol
- Ordering moved out of the filters panel into an Order by Meta panel of its own, so resetting one no longer clears the other’s work
- A group whose rows are all still incomplete is left out of the query rather than emitted empty, which would have widened the results instead of narrowing them
Fixed
- A Date field in time-only mode was filtered as a date: the comparison cast “14:30” to a SQL date, which never compares. The filter silently matched no post at all under is, is after and is on or after, and every post in the loop under the three others. Those fields now filter as times, with a time input instead of a calendar
- A filter saved on such a field came back looking correctly configured; it now comes back as an empty time input to fill in, and keeps running meanwhile instead of vanishing from the loop
- Time-only Date fields stay available in Order by Meta, still sorted as text rather than as datetimes
1.2.0
New
- New Block Editor field: a miniature block editor inside your field groups, offering Paragraph, Heading, List, Quote, Code and Separator (pick which ones in the field settings)
- The Block Editor field has its own undo and redo, so editing a field never rolls back the post around it
- Block Editor field: turn on Use the theme styles to write in a frame that renders the content exactly as the theme does, fonts, colors and heading sizes included
- get_field() returns a Block Editor field as rendered HTML, blocks and shortcodes resolved, ready to print in a template
- The Field Value block now displays Icon fields, converting into a native WordPress Icon block that follows the field post by post
- The Field Value block now displays Embed fields, converting into a native WordPress Embed block that follows the field post by post
- The Field Value block now displays File fields, converting into a native WordPress File block that follows the field post by post
- The Field Value block now displays Gallery fields, converting into a native WordPress Gallery block whose images follow the field post by post
- The Field Value block now displays Link and Post or Archive Link fields, converting into a native Button block carrying the destination, the label and the target
- The bound File, Embed, Icon or Gallery field can be repointed or detached afterwards from the block’s inspector
- A Gallery block bound to a field can also bring the images shown in the editor back in step with the field, from that same inspector
- Embed and Icon fields can be used as conditions in the Conditional Logic block: an embed compares like text, an icon on whether it is set
- Relation field: the new Bidirectional option records the reverse relation, so a post can be asked which posts point at it, read with modern_fields_get_linked_posts()
Improved
- The Relation, Repeater and Block Editor field settings moved to the block editor’s own settings panels: an option shows at a glance whether it has been changed, resets on its own, and the whole section resets at once
Fixed
- Editors and authors could not use the Field Value block or the Query Loop filters: both asked for administrator rights. Which field groups they see is still governed by the roles set on each group
- Field groups targeting specific posts, a term, a template or a status were missing from the Field Value block and the Query Loop filters, which showed an empty list
- The Field Value block now offers exactly the fields whose group applies to the post being edited, matching the metaboxes
- A failed field list request no longer looks like a post type without fields: the error is shown
- A Relation field dated its selected posts in its own format instead of the site’s, disagreeing with the search results beside them
- A Query Loop filter set on a field that is no longer offered (its group moved, or the field was renamed) silently lost its value. It stays, marked unavailable, with the value it filters on
1.1.0
New
- New customization options for the repeater row container
- Added a “order by” meta value in the query loop filters so you can order posts by a meta value date for example.
Improved
- You can now select “Advanced” tab in custom and existing block locations
- Field types (eg: Toggle) are now shown along with fields name in conditional logic, query loop filters and field value block selectors
- The Field Value block “Options page” source now also lists fields from Dashboard widget groups
Fixed
- Fixed a bug where custom values weren’t properly saved in a Custom Post Type
- Filters reset when changing post type in query loop block filters
- Fixed the field value block when selecting a time value
- Options pages are now administrator only. WordPress needs manage_option capability to store data.
- Options pages now show an error notice when saving fails instead of failing silently
- Fixed a blank options page when the group contains a repeater field that was never saved
1.0.0
New
- Clean up for official release
- Check free version minimum version requirement before activation
Fixed
- Fixed auto block slug generation in block form
- Fixed unavailable sources in Advanced Field Value Block
- Removed flickering on the relation loop block when selecting posts
0.9.2
New
- Status option for the Relation field.
- Trash support for custom blocks: move to trash, restore, or delete permanently, with an Active/Trash filter.
- New filter `modern-fields/blocks/template_directory` to change PHP block template directory
- New filters to change the value returned by getField(): `modern-fields/get_field/value`and `modern-fields/get_field/name=field-name`
- Field value block is now available in query loops and templates
- Edit your meta from the query loop preview
- Modern Fields Pro now requires Modern Fields 1.2.0 or higher, with a clear notice if your free version is too old
Improved
- A better UI for the block builder, with a checklist to help you easily build blocks.
- The Blocks builder and the Licence screen are now part of the single-page Modern Fields admin (no reload when switching tabs).
- Validation notices (incl. Options pages) now appear at the bottom-center, matching WordPress 7.0.
- Cleaner empty states in the Blocks list.
- Cleaner UI for block registration
Fixed
- Fixed issues with groups locations not correctly displayed
- Fixed the field value block preventing to select button
- Custom Block categories are now selectable