WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget: Star Rating System
[resolved] Shortcodes? (22 posts)

  1. bbq797
    Member
    Posted 1 year ago #

    Are there any shortcodes available to use?

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  3. JayKayCZ
    Member
    Posted 1 year ago #

    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..

  4. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    @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 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

  5. alwahsh14
    Member
    Posted 1 year ago #

    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.

  6. raselrony
    Member
    Posted 1 year ago #

  7. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    @alwahsh14 did you try to put the PHP shortcodes?

    e.g. rw_the_post_rating($postID)

  8. Andrew Gregson
    Member
    Posted 1 year ago #

    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

  9. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Andrew, adding a shortcode for top 10 liked posts is a great idea. I've added it to the TODOs list.

  10. talymo32
    Member
    Posted 1 year ago #

    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.

  11. GMarco24
    Member
    Posted 1 year ago #

    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

  12. GMarco24
    Member
    Posted 1 year ago #

    I think I know why plugin breaks on modal :/
    There is duplicated id in modal, so it's probably that what confuses rating widget

  13. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    @GMarco24 and @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 please tell me exactly what WP version and bp-media are you using and I'll add it to our TODOs list.

  14. GMarco24
    Member
    Posted 1 year ago #

    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 :)

  15. Masinizator
    Member
    Posted 1 year ago #

    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?

  16. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    @Masinizator Did you configure any of the rating types (e.g. posts, pages,...) as a thumb rating?

  17. Masinizator
    Member
    Posted 1 year ago #

    Yes, I'm configure ALL rating types as a thumb rating. But through a shortcodes rw_get_post_rating($postID) and rw_the_post_rating($postID) stars are displayed.

  18. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Very strange... I can try to investigate this myself. Please create a temporary admin access for [vova AT rating-widget DOT com] and I'll try to resolve it.

  19. vovafeldman
    Member
    Plugin Author

    Posted 6 months ago #

    All frequently asked questions about RatingWidget's plugin shortcodes:
    http://rating-widget.com/support/wordpress/shortcodes/

  20. shrutigoins
    Member
    Posted 5 months ago #

    Hi, I'm a very new to PHP so I'm not sure what to do.

    I want to add the rating of each post on my thumbnails: http://projectjust.shrutigoins.me/database/

    I imagine I need to put the PHP shortcode somewhere in my theme, but don't know where. How should I begin looking for this?

  21. RatingWidget
    Member
    Plugin Author

    Posted 5 months ago #

    You need to figure out what file in your theme is the template for the page you want to modify. After you find this file, you'll have to embedd one of the php shortcodes into that php file. The shortcodes are listed here:
    http://rating-widget.com/support/wordpress/shortcodes/

  22. shrutigoins
    Member
    Posted 5 months ago #

    Got it, thanks! I'll give that a try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.