display numeric value as money format
Started by: matthewS-8
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to format their number field as currency.
Solution:
This can be done by using the shortcode below.
function format_my_number($atts)
{
$atts = shortcode_atts(
array(
'num' => '',
'sym' => '',
),
$atts
);
$num = $atts['num'];
return $atts['sym'].' '.number_format($num, 0, '.', ',');
}
add_shortcode('format-currency', 'format_my_number');
So it would be [format-currency num="types shortcode goes here" sym="$"]
2
9
6 years ago
matthewS-8
Building a storytelling website
Started by: deanL
in: Toolset Professional Support
Quick solution available
2
3
6 years ago
deanL
– how to add a redirect after the change
Started by: tony
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to add a redirect on their reset password form.
Solution:
You can add the redirect by using this attribute "redirect_url"
Add it to your shortcode like this [wpv-reset-password-form redirect_url='myurl']
2
6
6 years, 1 month ago
tony