CFMB Compatibility Mode
Free WordPress plugin that keeps Advanced Custom Fields (ACF, ACF Pro, SCF) template functions like get_field(), have_rows(), get_sub_field() and options pages working after you switch to CFMB - Custom Fields Meta Box. No template edits needed.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mozi2wp/cfmb-compatibility-mode/archive/refs/heads/main.zip
CFMB Compatibility Mode
Keep get_field(), have_rows() and other ACF template functions working after you migrate from Advanced Custom Fields to the free CFMB - Custom Fields Meta Box plugin. No template edits needed.
WordPress.org · CFMB on GitHub
Supported functions
get_field(), the_field(), get_fields(), get_field_object(), update_field(), delete_field(), have_rows(), the_row(), get_sub_field(), the_sub_field(), get_row_layout(), get_row_index(), reset_rows(), acf_add_options_page(), acf_add_options_sub_page().
Each is a thin wrapper around its cfmb_ version. Arguments like 'option', 'user_5', 'term_12' and field_… keys are translated.
Migrate from ACF without breaking your theme
- Install CFMB - Custom Fields Meta Box and run its Switch Assistant.
- Install CFMB Compatibility Mode.
- Deactivate ACF or Secure Custom Fields. The theme keeps working.
- Replace
get_field()withcfmb_get_field()over time, then remove this plugin.
Safe next to ACF
The functions are never defined while ACF, ACF Pro or Secure Custom Fields is active, and each one is wrapped in function_exists().
License
GPLv2 or later. Made by Mozi2WP. Not affiliated with Advanced Custom Fields or WP Engine.