Ad Inserter
94Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
Simple field math for Advanced Custom Fields.
Calculated Fields for ACF is a WordPress plugin that enhances Advanced Custom Fields by allowing users to create formula fields for simple mathematical calculations based on other field values. It updates calculations dynamically via AJAX in the backend post editor and on frontend forms created with the acf_form() function.
This plugin is suitable for users who need to perform calculations within their custom fields, particularly those using Advanced Custom Fields. It supports basic mathematical operations and conditional expressions, making it useful for various applications where dynamic calculations are necessary.
Best for: This plugin is best for developers and site owners using Advanced Custom Fields who require dynamic calculations in their forms.
What it does well
Where it falls short
Calculated Fields for ACF provides a straightforward way to add formula fields to custom fields in WordPress, catering to users needing mathematical functionalities. It is a useful tool for those familiar with Advanced Custom Fields.
wundermatics's own description of Calculated fields for ACF, lightly tidied.
Adds a formula fields ot Advanced Custom Fields that allows you to perform simple math based on field values. Calculations are updated dynamically via ajax while editing a post on the backend post editor as well as on front end forms.
Calculated fields requires Advanced Custom Fields 5.0 or later and works with Pro as well as the standard version.
Beginning in version 1.2.3, Calculated fields for ACF supports frontend forms created using the acf_form() function (built in to Advanced Custom Fields).
Calculated fields adds a new setting “Formula” to the the ACF field editor. Formulas supports referring to other fields in the same Field group using the field name. If a formula is added to a sub field inside a repeater field, the name refers to another sub field in the same repeater.
A sub field inside a repeater field can also refer to a parent field using the “parent.”” prefix.
A formula can contain the basic mathematical operations: plus (+), minus (-), multiply (*), division (/) and power of (^). Formulas can also contains functions like sin, cos, arcsin, log, ln, sqrt, abs. Parentheses are supported.
If an expression can’t be evaluated due to invalid syntax or referring to undefined field names, it will silently return zero.
Examples of valid expressions (note, no equal sign at the beginning):
An expression can also contain a conditional expression that will return either 0 or 1. The supported operators are:
Examples of valid expressions using conditional operators:
Other plugins for custom content structures.
Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...
Checkout Field Editor (Checkout Manager) for WooCommerce – The best WooCommerce checkout manager plugin to man...
Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...
The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.
Admin UI for creating custom content types like post types and taxonomies