Calculating a person's age based on a date field

Ever wanted to calculate someone else's age based on a date field? That's possible by using the [gv_age] shortcode below:

The output:

Now that we have the age displaying, we can rename the label of the  Custom Content field:

And voilá:

You'll need this code in order to enable the [gv_age] shortcode:

Related:  Where do I add the code samples you share?

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.