WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: calculated-fields-for-acf (Used by 3 domains)

Calculated fields for ACF

👤 wundermatics 📦 v1.3.2 🔗 Plugin Homepage

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.

Requirements

Calculated fields requires Advanced Custom Fields 5.0 or later and works with Pro as well as the standard version.

Frontend forms

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).

Formulas

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):

  • fieldA * 2
  • fieldA * fieldB
  • abs(fieldA) * (2 + sqrt(fieldB))
  • amount * parent.price

Conditional operators

An expression can also contain a conditional expression that will return either 0 or 1. The supported operators are:

  • Equals (==) – Returns 1 when two values are equal, 0 otherwise
  • Not equals (!=) – Returns 1 when two values are not equal, 0 otherwise
  • Greater than (>) – Returns 1 when the first operand is greater than the second, 0 otherwise
  • Greater than or equal (>=) – Returns 1 when the first operand is greater than or equal to the second, 0 otherwise
  • Less than (<) – Returns 1 when the first operand is less than the second, 0 otherwise
  • Less than or equal (<=) – Returns 1 when the first operand is less than or equal to the second, 0 otherwise

Examples of valid expressions using conditional operators:

  • 10 == 10 (returns 1)
  • 10 == 2 (returns 0)
  • 10 > 2 (returns 1)
  • 10 < 2 (returns 0)
  • 10 <= 10 (returns 1)

Rounding functions

Round a decimal value to the nearest integer. Supported functions are:

  • round() – Uses standard mathematical rounding rules to round to nearest integer
  • ceil() – Rounds the value to the next higher integer
  • floor() – Rounds the value to the next lower integer

Examples of valid expressions using rounding functions:

  • round(10.2) (returns 10)
  • round(10.9) (returns 11)
  • round(10.888888 * 10) / 10 (returns 10.9)
  • ceil(10.2) (returns 11)
  • floor(10.2) (returns 10)

Note that the round() function only takes one parameter and always round to an integer. If you need to round to a higher precision, multiply and divide as shown in third example above.

Group fields (new from 1.2.4)

Fields defined as part of a group, subfields, can be addressed using the group name as a prefix. Inside the group, a field defined on the parent level can be addressed using the “parent” prefix. See examples below:

Valid formula to use the value of field “foobar” defined inside the group “group2”:
* group2.foobar + 10

Valid formula in a field inside a group (assuming the parent has a field named count):
* parent.count * 22

Array functions for repeater fields

If repeater fields are used, a calculated field in the parent field group can summarize a specific repeater sub fields using the aggregation functions sum, count, average, min or max. For example, the expression: “Sum(orderlines.amount)”” will return the sum of all the “amount” fields in the repeater field “orderlines”.

The available array functions are:

  • sum()
  • average()
  • count()
  • min()
  • max()

Note that anything after the dot (.) in the aggregate expression is an expression in itself. It’s perfectly OK to write a formula like: “Sum(orderlines.price * amount)”. This expression will walk over all lines in the “orderlines” repeater field, perform the calculation “price * amount” and return the sum of all lines.

Note that when working with aggregate functions, parentheses can not be used. If you need to aggregate a more complex calculation, you should add an extra field in the repeater group and let the aggregate function work on this extra field.

Data type and calculation order

Calculated fields works with the assumption that all fields are defined as numeric in the ACF editor. Using a text field in a formula WILL PRODUCE UNPREDICTABLE RESULTS.

Calculations are made as the custom field is stored to the database. To minimize the impact of performance, Calculated fields rely on field order. A formula field can only refer to fields ordered BEFORE itself. A formula field that refers to a field ordered after it WILL PRODUCE UNPREDICTABLE RESULTS.

DomainExposuresHeadersLast Checked
b*d*w*z*.u*r.e*u.pl (WP 6.2.2) ⚠️ B 2026-05-31 06:05:12
l*t*o*a.com F 2026-05-08 10:41:21
c*m*n*n*o*r*n*e*a*.org (WP 6.9.4) F 2026-05-03 16:34:32

Top 50 Plugins

Plugin Count
elementor 1,845,026
contact-form-7 1,814,379
elementor-pro 1,074,639
woocommerce 834,328
revslider 631,057
jetpack 474,701
js_composer 442,043
wp-rocket 343,148
essential-addons-for-elementor-lite 303,315
gravityforms 291,645
complianz-gdpr 264,632
cookie-law-info 238,008
instagram-feed 233,160
google-site-kit 227,086
sitepress-multilingual-cms 226,612
google-analytics-for-wordpress 218,275
header-footer-elementor 214,731
elementskit-lite 214,055
bluehost-wordpress-plugin 191,979
gutenberg 165,128
gutenberg-core 163,247
cookie-notice 156,862
litespeed-cache 137,160
the-events-calendar 135,646
wpforms-lite 131,895
gtranslate 131,059
astra-sites 121,430
popup-maker 118,674
woocommerce-payments 114,788
tablepress 113,253
coblocks 101,881
honeypot 100,128
astra-addon 97,326
duracelltomi-google-tag-manager 96,036
wp-smushit 95,656
all-in-one-seo-pack 95,213
LayerSlider 93,578
bb-plugin 92,205
megamenu 89,033
premium-addons-for-elementor 88,891
akismet 87,453
mailchimp-for-wp 85,480
cleantalk-spam-protect 85,280
woocommerce-gateway-stripe 84,759
ml-slider 83,225
borlabs-cookie 82,106
fusion-builder 81,492
wp-pagenavi 81,138
ewww-image-optimizer 80,807
smart-slider-3 79,595

Top 50 Themes

Theme Count
hello-elementor 631,095
Divi 521,797
astra 432,703
flatsome 142,108
Avada 127,084
generatepress 125,483
pub 112,409
oceanwp 85,449
kadence 80,767
twentytwentyfour 80,280
enfold 73,503
salient 68,110
h4 57,690
twentyseventeen 57,578
bb-theme 56,107
betheme 53,173
cocoon-master 52,483
blocksy 52,231
dt-the7 47,224
twentytwentyfive 45,213
sydney 42,519
neve 40,452
Avada-Child-Theme 38,420
woodmart 34,046
gox 34,021
bridge 33,548
twentytwentyone 32,826
lightning 31,937
twentytwenty 30,760
swell 28,919
Impreza 27,210
bricks 26,663
voxel 25,694
twentytwentythree 24,488
Newspaper 24,266
sinatra 22,661
kubio 21,620
twentytwentytwo 20,266
uncode 19,571
epik-redesign 19,281
twentysixteen 18,733
storefront 18,307
pro 18,094
Total 15,054
extendable 14,875
yith-wonder 14,120
hello-theme-child-master 13,717
themify-ultra 13,308
yootheme 13,284
hestia 13,196