Title: Adding shortcodes to Text fields
Last modified: May 19, 2017

---

# Adding shortcodes to Text fields

 *  [cetaceancousins](https://wordpress.org/support/users/cetaceancousins/)
 * (@cetaceancousins)
 * [9 years ago](https://wordpress.org/support/topic/adding-shortcodes-to-text-fields/)
 * Hi
 * Are you able to add shortcodes within the database
 * For example I have a field called “Age” and i wish to display someone’s birthday
   using a shortcode like this ” [agecalc birthdate=”1978-01-30] ” ?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years ago](https://wordpress.org/support/topic/adding-shortcodes-to-text-fields/#post-9152098)
 * The only field that processes shortcodes is a rich text field. I’n not sure how
   well that will work in your case.
 * In Participants Database, there are several ways to show someone’s age, given
   a date, they all require some amount of coding. Doing it in a custom template
   is perhaps the easiest way to go. The template calculates the age and fills in
   the value when it’s displayed.
 * I created a single record template that demonstrates a way to do this:
 * [https://gist.github.com/xnau/4f19d08b7e240d81df2f1c5e2681b227](https://gist.github.com/xnau/4f19d08b7e240d81df2f1c5e2681b227)

Viewing 1 replies (of 1 total)

The topic ‘Adding shortcodes to Text fields’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/adding-shortcodes-to-text-fields/#post-9152098)
 * Status: not resolved