Title: Use shortcode in shortcode
Last modified: August 24, 2016

---

# Use shortcode in shortcode

 *  Resolved [saschavalentin](https://wordpress.org/support/users/saschavalentin/)
 * (@saschavalentin)
 * [11 years ago](https://wordpress.org/support/topic/use-shortcode-in-shortcode/)
 * Hey Chasil,
 * I wonder if it is possible to use shortcode within the shortcode of Universal
   Star Rating. To explain what I want to do: I´ve made some custom fields with 
   Pods and want to use these entries as values for your plugin.
 * This results because Universal Star Rating lacks a possibility to enter the values
   when creating a new post and I want to make it as easy as possible for the users.
 * Hope you understand what I´m trying to explain and that you can help.
 * Thanks a lot,
 * Sascha
 * [https://wordpress.org/plugins/universal-star-rating/](https://wordpress.org/plugins/universal-star-rating/)

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

 *  [ypark](https://wordpress.org/support/users/ypark/)
 * (@ypark)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/use-shortcode-in-shortcode/#post-6108644)
 * I understand this is an old post but I had to address the same requirement for
   a client. I used [Advanced Customer Fields](https://wordpress.org/plugins/advanced-custom-fields/)
   plugin to create custom field “rating” so the client can input a number value
   for the rating when creating new posts. Then I edited the template to include
   the rating next to the post title.
 *     ```
       <?php $rating_value = get_field('rating');
       $rating_shortcode = "[usr={$rating_value}]";  ?>
       <?php echo do_shortcode( $rating_shortcode ); ?>
       ```
   
 * The end product will be more comprehensive than this here (will include different
   categories) but I wanted to give others something to work off of.
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/use-shortcode-in-shortcode/#post-6108653)
 * Hi all!
 * [@saschavalentin](https://wordpress.org/support/users/saschavalentin/): There
   is nothing implemented inside USR. For now you have to use other plugins/methods
   as a workaround.
 * [@ypark](https://wordpress.org/support/users/ypark/): Thanks for your aid. I 
   like the idea of helping each other with their issues 🙂
 * Regards

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/universal-star-rating.svg)
 * [Universal Star Rating](https://wordpress.org/plugins/universal-star-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/universal-star-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/universal-star-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/universal-star-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/universal-star-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/universal-star-rating/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Chasil](https://wordpress.org/support/users/chasil/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/use-shortcode-in-shortcode/#post-6108653)
 * Status: resolved