Calculation in "add_post_meta"
-
Hello. I have a question.
I have 3 custom-fileds, for example is “gain”, “spent” and “total”.
I want to fill “total” automatically, like “gain – spent = total”.Function “get_post_meta” works not correctly in that case, cause it get meta-value after I click “publicate” and I need click “update” again.
I need some help. How can I got value in custom-field “total” from other meta-values.
Sry for my English. =)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Calculation in "add_post_meta"’ is closed to new replies.