but not sure how to isolate the function just to this field globally....
I'm currently in the process of changing the price values from strings to numbers (i.e, manually removing dollar signs and commas)
Hi Shane,
I'm getting a php error after adding this to my functions.php file.
Your PHP code changes were rolled back due to an error on line 170 of file wp-content/themes/total-child-theme/functions.php. Please fix and try saving again.
syntax error, unexpected '&'
Also, not sure where to place the short code to get the results? If I put it on the Content Template that this view is using, I get this result.
Thanks Shane, that fixed the php error.
And I've registered both functions under View>View Settings > Third party Shortcode Arguments
Now how do I wrap my entry in this shortcode in a view ?
This gives me no results:
<div class="homePrice">[format-currency]{!{types field='wpcf-current-price'}!}{!{/types}!}[/format-currency]</div>
And this displays "[format_my_number1539900"
<div class="homePrice">[format_my_number]{!{types field='current-price'}!}{!{/types}!}[/format_myNumber]</div>