Title: shortcode in shortcode
Last modified: September 1, 2016

---

# shortcode in shortcode

 *  Resolved [prodesign70](https://wordpress.org/support/users/prodesign70/)
 * (@prodesign70)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-shortcode-2/)
 * Dear Chris
    Please answer my next question.
 * On my website, I have applied your plugin. However, I have to do everything manually.
   I just can’t set the progress to run automatically.
 * Basically, your plugin should understand that a sale has been done on the website,
   and raise the percentage for the number that I put. Let it be 1%.
 * The plugin, which is installed as currency, is called Mycred. Mycred has the 
   option of viewing the currency as $, but even when I set it, the progress bar
   does not understand it. It is possible that I didn’t set up everything correctly
   because I’m not a great expert on all this. It is possible that the reason for
   it is the fact that the $ sign, however, only represents a symbol, and it’s not
   a real symbol that, for example, PayPal has. If we skip the $ symbol, I’d like
   to ask you the following question.
 * Mycred plugin has a shortcode **[mycred_content_sale_count]** that, on the web
   page, lists the number of members who have purchased the product. That number
   is 15, for example, at this moment, and I want 100 of them to buy the product.
   Can the shortcode provided by Mycred be inserted into your shortcode, so that
   number represents the percentage?
 * Please help me. If you have any other advice, please write to me. If you have
   a solution, please write it to me.
 * Thanks
 * [https://wordpress.org/plugins/progress-bar/](https://wordpress.org/plugins/progress-bar/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Chris Reynolds](https://wordpress.org/support/users/jazzs3quence/)
 * (@jazzs3quence)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-shortcode-2/#post-7687069)
 * You can do what you are trying to do but you would need to do it in the code.
 * Assuming `$progress` is the value of the percentage of the bar, you would do 
   something like this:
 *     ```
       <?php echo do_shortcode( '[wppb progress=' . $progress . ' percent=inside]' ); ?>
       ```
   
 * Any logic that you need to add to get you there is up to you. The progress bar
   plugin is not “smart” and it _should not_ understand anything that is happening
   outside of what you tell it explicitly. The plugin is intentionally “dumb” and
   designed to do one simple task — display a progress bar with the given values
   and options. That’s it. Any automation you want to use it for is up to you.
 *  Thread Starter [prodesign70](https://wordpress.org/support/users/prodesign70/)
 * (@prodesign70)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-shortcode-2/#post-7687384)
 * Dear Chris
    Thank you very much for your reply but I have no idea how to do it.
   🙁
 *  Plugin Author [Chris Reynolds](https://wordpress.org/support/users/jazzs3quence/)
 * (@jazzs3quence)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-shortcode-2/#post-7687388)
 * The short answer is that this plugin isn’t able to do anything like that out 
   of the box. And shortcodes, in general, aren’t able to be embedded inside other
   shortcodes without custom programming anyway. You would most likely need to hire
   a developer if it is something that you do not feel comfortable doing yourself.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘shortcode in shortcode’ is closed to new replies.

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

## Tags

 * [shortcode in shortcode](https://wordpress.org/support/topic-tag/shortcode-in-shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Chris Reynolds](https://wordpress.org/support/users/jazzs3quence/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-shortcode-2/#post-7687388)
 * Status: resolved