Skip to content

Instantly share code, notes, and snippets.

@10h30
Forked from mattradford/acf_currency.php
Last active September 5, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 10h30/03475be1c6a10855d7c6 to your computer and use it in GitHub Desktop.
Save 10h30/03475be1c6a10855d7c6 to your computer and use it in GitHub Desktop.
ACF number field as formatted currency amount
<?php if(get_field('current_donations_total','options')) :
echo '&pound;' . 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