Support Log in

51. Quick Reference Card

Developer Guide
Prefer video? Watch the Field Forge tutorials 8 short guides covering every feature Watch
TaskCode
Get field valueget_field( 'name', $post_id )
Echo field valuethe_field( 'name', $post_id )
Get all fieldsget_fields( $post_id )
Get options valueget_field( 'name', 'options' )
Get user valueget_field( 'name', 'user_5' )
Get term valueget_field( 'name', 'term_12' )
Update fieldupdate_field( 'name', $value, $post_id )
Delete fielddelete_field( 'name', $post_id )
Loop repeaterwhile ( have_rows('r') ) : the_row(); get_sub_field('f'); endwhile;
Get layout nameget_row_layout()
Get row indexget_row_index() (1-based)
Register options pagefieldforge_add_options_page( [...] )
Register PHP blockfieldforge_register_block_type( [...] )
Preload for custom queryfieldforge_preload( [1, 2, 3] )
Flush cacheFIELDFORGE_Performance::instance()->flush_all()
Delete all valuesFIELDFORGE_Field_Values::instance()->delete_all( $post_id )
Check FF activedefined( 'FIELDFORGE_VERSION' )
Check FF PROdefined( 'FIELDFORGE_PRO' ) && FIELDFORGE_PRO
Get calculation total (raw)get_field( 'calc_name', $post_id ) → float
Format calculation outputfieldforge_format_calc_value( $value, $settings )
Aggregate across posts (PHP)fieldforge_aggregate_field( 'field', 'post_type', 'publish', 'sum' )
Aggregate shortcode$0.00
Aggregate REST (PRO)GET /wp-json/fieldforge/v1/aggregate?field=f&post_type=p&op=sum
Forge AI Assistant Online

Hi! I'm the Field Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs