Title: Passing php variable for the value
Last modified: August 21, 2016

---

# Passing php variable for the value

 *  [paramasivanpn](https://wordpress.org/support/users/paramasivanpn/)
 * (@paramasivanpn)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/passing-php-variable-for-the-value/)
 * Hi,
 * The shortcode is like `[rprogress value=80]`
 * In the place of value (80) I want to pass on a php variable.
 * How to do that?
 * Thanks,
 * [https://wordpress.org/plugins/responsive-progress-bar/](https://wordpress.org/plugins/responsive-progress-bar/)
 * Found the solution :-
 * `<?php echo do_shortcode('[rprogress value="'.$likes.'" color="#cc0001" border_radius
   ="7px"]'); ?>`

The topic ‘Passing php variable for the value’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-progress-bar_3ccafd.svg)
 * [Responsive Progress Bar](https://wordpress.org/plugins/responsive-progress-bar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-progress-bar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-progress-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-progress-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-progress-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-progress-bar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [paramasivanpn](https://wordpress.org/support/users/paramasivanpn/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/passing-php-variable-for-the-value/)
 * Status: not resolved