Title: Shortcodes?
Last modified: August 20, 2016

---

# Shortcodes?

 *  Resolved [bbq797](https://wordpress.org/support/users/bbq797/)
 * (@bbq797)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-25/)
 * Are there any shortcodes available to use?
 * [http://wordpress.org/extend/plugins/rating-widget/](http://wordpress.org/extend/plugins/rating-widget/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/shortcodes-25/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/shortcodes-25/page/2/?output_format=md)

 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614787)
 * Yes! For the content you can use `[ratingwidget post_id=123]`. For PHP, use `
   rw_get_post_rating($postID)` and `rw_the_post_rating($postID)`.
 *  [JayKayCZ](https://wordpress.org/support/users/jaykaycz/)
 * (@jaykaycz)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614814)
 * Hi, do you have any documentation for shortcodes? (for pages, posts, what is 
   the right strucutre, and so on).. BTW I love your widget, quite simple and very
   usefull..
 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614815)
 * [@jaykaycz](https://wordpress.org/support/users/jaykaycz/) thanks for the warm
   feedback.
 * For posts:
    a) Current post rating – `[ratingwidget]` b) Specified post rating–`[
   ratingwidget post_id=123]`
 * For pages:
    a) Current page rating – `[ratingwidget type="page"]` b) Specified
   page rating – `[ratingwidget type="page" post_id=123]`
 * Btw. I would really appreciate if you could spend 60 sec [rating the plugin on WP](http://wordpress.org/support/view/plugin-reviews/rating-widget#postform)
   to help us spread the word (don’t forget to click the Post button to submit the
   rating):
    [http://wordpress.org/support/view/plugin-reviews/rating-widget#postform](http://wordpress.org/support/view/plugin-reviews/rating-widget#postform)
 *  [alwahsh14](https://wordpress.org/support/users/alwahsh14/)
 * (@alwahsh14)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614816)
 * I’d like to use this for Photo Galleries.
    For some reason, though I manually
   inserted the shortcode into the body of the gallery item, it doesn’t appear on
   the front end.
 * If from the WP Backend I select the gallery’s photo in question, the ratings 
   appear on it’s own page. I can PM you a URL to view.
 *  [raselrony](https://wordpress.org/support/users/raselrony/)
 * (@raselrony)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614817)
 * Hey check this post out [http://www.techshaper.com/best-fancy-box-wordpress-plugin/](http://www.techshaper.com/best-fancy-box-wordpress-plugin/)
 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614818)
 * [@alwahsh14](https://wordpress.org/support/users/alwahsh14/) did you try to put
   the PHP shortcodes?
 * e.g. `rw_the_post_rating($postID)`
 *  [Andrew Gregson](https://wordpress.org/support/users/justatestaccount/)
 * (@justatestaccount)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614819)
 * Hi Vova, ]
 * I’d like to drop the widget which contains a summary of the top 10 liked posts
   onto a page using a shortcode or something sinmilar.
 * Is there a way to display the top ten without having to place a widget on the
   page – ie use a shortcode?
 * Any helps would be much appreciated
 * Thanks,
    Ande
 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [13 years ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614820)
 * Hey Andrew, adding a shortcode for top 10 liked posts is a great idea. I’ve added
   it to the TODOs list.
 *  [talymo32](https://wordpress.org/support/users/talymo32/)
 * (@talymo32)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614821)
 * Tried everything I could to get this to work, including the shortcodes here in
   this thread. I keep getting this returned in my DOM where the rating widget should
   be…
 * `<div class="rw-ui-container rw-class-blog-post rw-urid-19550"></div>`
 * Could be a problem with child-pages maybe??? I don’t know… Moving on to the next
   rating plugin.
 *  [GMarco24](https://wordpress.org/support/users/gmarco24/)
 * (@gmarco24)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614822)
 * Same thing for me talymo32 🙁
 * I wanted to use it for photos of bp-media and it was working well. Now bp-media
   changed view: it’s in modal window, simulating lightbox effect and ratings are
   gone.
 * I tried placing:
    rw_the_post_rating($postID) where I wanted rating to show, 
   but all I get is this:
 * <div class=”rw-ui-container rw-class-blog-post rw-urid-19550″></div>
 * Any ideas Vova? It’s important for us to have ratings on photos.
    Thanks
 *  [GMarco24](https://wordpress.org/support/users/gmarco24/)
 * (@gmarco24)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614823)
 * I think I know why plugin breaks on modal :/
    There is duplicated id in modal,
   so it’s probably that what confuses rating widget
 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614824)
 * [@gmarco24](https://wordpress.org/support/users/gmarco24/) and [@talymo32](https://wordpress.org/support/users/talymo32/),
   you are definitely in the right direction here, but you are missing a small part.
   Placing rw_the_post_rating($postID) in the PHP is correct, but the JS must be
   notified that the rating element must be rendered. Unfortunately, currently there’s
   no way to render specific rating, though you can re-render the whole ratings.
   Try to add this into your lightbox:
 *     ```
       <?php rw_the_post_rating($postID); ?>
       <script type="text/javascript">
           RW_Async_Init();
       </script>
       ```
   
 * Let me know if that worked.
 * Anyhow, [@gmarco24](https://wordpress.org/support/users/gmarco24/) please tell
   me exactly what WP version and bp-media are you using and I’ll add it to our 
   TODOs list.
 *  [GMarco24](https://wordpress.org/support/users/gmarco24/)
 * (@gmarco24)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614825)
 * Thanks for the quick answer Vova, I really appreciate that and it shows you take
   your work seriously.
 * That code didn’t work. As before, rating is not appearing at all. WordPress and
   bp-media are latest versions now, so WP 3.5.1 and bp-media is 2.15.1.
 * I really like your plugin and I hope this little issue will be fixed soon 🙂
 *  [Masinizator](https://wordpress.org/support/users/masinizator/)
 * (@masinizator)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614826)
 * Hi, Vova! I want to add “thumbs” manually in my template. I use _rw\_the\_post\
   _rating($postID)_ but displaying default stars.
    What reason may be?
 *  Plugin Author [Vova Feldman](https://wordpress.org/support/users/svovaf/)
 * (@svovaf)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcodes-25/#post-3614827)
 * [@masinizator](https://wordpress.org/support/users/masinizator/) Did you configure
   any of the rating types (e.g. posts, pages,…) as a thumb rating?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/shortcodes-25/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/shortcodes-25/page/2/?output_format=md)

The topic ‘Shortcodes?’ is closed to new replies.

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

 * 21 replies
 * 11 participants
 * Last reply from: [shrutigoins](https://wordpress.org/support/users/shrutigoins/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/shortcodes-25/page/2/#post-3614834)
 * Status: resolved