What’s the best way to format ACF number fields for display on the front end?
You need to use the wp_footer action hook, similar to this add_action(‘wp_footer’, ‘add_my_script’); function add_my_script() { ?> <script> // your script code here </script> <?php return; } This hook will hook into the themes’ wp_footer() call, so it will happen as part of the theme’s display of the footer. Place this code in the functions.php … Read more