en WordPress.com Forums › Support Custom fields Author Posts October 7, 2010 at 11:49 pm #527385 nalaqueenMember 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 October 7, 2010 at 11:49 pm #527585 supportbotMember You did not specify a blog address or reason for posting when you created this topic. This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums. If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful. If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question. This is an automated message. Author Posts The topic ‘Custom fields’ is closed to new replies.