Title: variable as a button label text
Last modified: July 28, 2020

---

# variable as a button label text

 *  Resolved [papamak](https://wordpress.org/support/users/papamak/)
 * (@papamak)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/variable-as-a-button-label-text/)
 * hi, can i use (into a shortcode) a value of a variable instead of a static text
   into a button label text?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * (@rubengc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/variable-as-a-button-label-text/#post-13184281)
 * Hi [@papamak](https://wordpress.org/support/users/papamak/)
 * Actually on WordPress there isn’t any way to pass variables to shortcodes (only
   through custom code)
 * Anyway, this is not a question of our Buttons add-on, is a general question to
   pass dynamic variables to WordPress shortcodes so you can ask this question on
   the WordPress forums and for sure someone could let you know if this is possible
   and how:
    [https://wordpress.org/support/forum/wp-advanced/](https://wordpress.org/support/forum/wp-advanced/)
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘variable as a button label text’ is closed to new replies.

 * ![](https://ps.w.org/gamipress-button/assets/icon-256x256.png?rev=2206358)
 * [GamiPress - Button](https://wordpress.org/plugins/gamipress-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gamipress-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gamipress-button/)
 * [Active Topics](https://wordpress.org/support/plugin/gamipress-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gamipress-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gamipress-button/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/variable-as-a-button-label-text/#post-13184281)
 * Status: resolved