Field Forge has no automatic importer for Meta Box: the only importer reads ACF / SCF. Moving from Meta Box is a manual project: you recreate the field groups in Field Forge (by hand in the visual builder, or by describing them to AI schema generation (Pro; 2 credits per generation, and nothing is charged when a built-in template matches your description)), copy the values with a script of your own, and update the templates. Meta Box stores many values in wp_postmeta using standard meta_key/meta_value pairs, which is what the script below reads. Extension data, groups defined in code, location rules and custom callbacks have to be checked site by site.
Detection
// Check for Meta Box data in postmeta
global $wpdb;
$meta_box_groups = $wpdb->get_results(
"SELECT DISTINCT meta_key FROM {$wpdb->postmeta}
WHERE meta_key NOT LIKE '\_%'
AND meta_key NOT LIKE 'field\_%'
ORDER BY meta_key"
);Migration Strategy
- Create matching field groups in Field Forge with the same field names.
- Migrate values from
wp_postmetato the Field Forge values table. - Test templates — since Field Forge supports
get_field(), update anyrwmb_meta()calls.
// Batch migrate Meta Box values to Field Forge
function migrate_meta_box_to_fieldforge( $post_type, $field_names ) {
$posts = get_posts( [ 'post_type' => $post_type, 'numberposts' => -1, 'fields' => 'ids' ] );
foreach ( $posts as $post_id ) {
foreach ( $field_names as $name ) {
$value = get_post_meta( $post_id, $name, true );
if ( '' !== $value && null !== $value ) {
update_field( $name, $value, $post_id );
}
}
}
}
// Usage
migrate_meta_box_to_fieldforge( 'product', [ 'price', 'sku', 'description', 'gallery' ] );Template Updates
Replace Meta Box function calls with Field Forge equivalents:
// Before (Meta Box)
$value = rwmb_meta( 'price' );
$images = rwmb_meta( 'gallery', [ 'size' => 'large' ] );
// After (Field Forge)
$value = get_field( 'price' );
$images = get_field( 'gallery' ); // Returns array based on return_format—