-
-
Save 10h30/03475be1c6a10855d7c6 to your computer and use it in GitHub Desktop.
ACF number field as formatted currency amount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(get_field('current_donations_total','options')) : | |
echo '£' . number_format((get_field('current_donations_total','options')), 0, '.', ','); | |
endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment