Tricky Custom Field Question!
-
Hi Guys. does anyone know how to add a percentage to a custom field if its a number?
So for example my code is;
<?php echo get_post_meta($post->ID, ‘price’, true) ?>
If the value of price is 100 and i want it to automatically add 20% so that the outcome is 120, how is this possible?
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Tricky Custom Field Question!’ is closed to new replies.