Wednesday, December 21, 2022
HomeWordPress Developmentplugins - Superior Customized Fields and Commas in Numbers

plugins – Superior Customized Fields and Commas in Numbers


I’ve ACF (Superior Customized Fields) put in on my WordPress web site and am attempting so as to add a comma each third place (1,000) as an alternative of (1000). I’m using code I’ve discovered on different boards, however causes a essential error after I use it. I believe that is my very own error (novice) and hope somebody can assist me discover out what I am doing improper.

add_filter('acf/format_value/identify=number_of_supporters', 'fix_number', 20, 3);
perform fix_number($worth, $post_id, $discipline) {
  $worth = number_format($worth);
  return $worth;
}

enter image description here

The web site URL is https://coregiving.org and it leverages the Oxygen builder (if it is related).

Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments