The short version
Advanced Custom Fields (ACF) is great. But the free tier lacks repeaters, and the Pro license costs real money.
OpenFields (GitHub: novincode/openfields ) does everything ACF Pro does, uses the exact same get_field() API, and is 100% GPL.
I tested it on a production site. It works. No catch.
Technical compatibility – it’s not a rewrite
OpenFields mirrors the ACF Pro API exactly. These functions work out of the box:
get_field () / the_field () have_rows () / the_row () / get_sub_field () get_fields () / update_field () / delete_field () get_field_object ()
Enter fullscreen mode
Exit fullscreen mode
That means your existing templates keep working. No refactoring.
Repeater example
<?php if ( have_rows ( 'team_members' ) ) : ?> <?php while ( have_rows ( 'team_members' ) ) : the_row (); ?> <h3> <?php the_sub_field ( 'name' ); ?> </h3> <p> <?php the_sub_field ( 'role' ); ?> </p> <?php endwhile ; ?> <?php endif ; ?>
Enter fullscreen mode
Exit fullscreen mode
Same syntax.…