Calculation Issue Using Shortcode
-
I’m using a shortcode for a total based on thistopic in the forum. The issue i’m having is that it only returns the first number of the amount. I’ve tried a few different ways of getting it to work but it still will not.
add_shortcode('total','t_budget'); function t_budget() { $a = do_shortcode('[gravitywp_count formid="8" number_field="37" decimals="2" dec_point="." thousands_sep=","]'); $b = do_shortcode('[gravitywp_count formid="8" number_field="37" decimals="2" dec_point="." thousands_sep=","]'); $c = $a - $b; return $c; }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Calculation Issue Using Shortcode’ is closed to new replies.