WordPress.org

Support

Support » Plugins and Hacks » Five Star Rating » [Resolved] [Plugin: Five Star Rating] Truncated posts

[Resolved] [Plugin: Five Star Rating] Truncated posts

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author andrew.alba

    @andrewalba

    You can do that, but the down side of doing this is that the ratings will show up on all pages that you insert the code on.

    What I usually do is create a copy of Page (page.php) and rename it rating_page.php and change name of template to Rating Page. In it you can insert the code below (it is in the FAQ) where you want the ratings to appear all the time.

    <?php echo five_star_rating_func('star'); ?>

    Once you save the changes, you will see the ratings appear on every post that uses that page.

    Thank you for the quick reply.

    I have created a post template with the code in it and it’s working great, however the Five Star Rating stars don’t appear in the truncated posts which are being displayed on the page, they only appear when going to the post itself.

    Here is an example:
    http://www.thesnowtour.com/?page_id=661

    That page is set to display a widget, that widget is set to show only posts from a certain category (in this case it’s “user submitted content”). I would like for every post displayed via the widget on that page to display the voteable stars without the user having to click into the post to vote.

    Again thank you very much for taking the time.

    Plugin Author andrew.alba

    @andrewalba

    sorry I missed your post back. My only suggestion is to double check where you put the code. It has to be outside of The Loop.

    From your description it sounds like your code is in the loop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Five Star Rating] Truncated posts’ is closed to new replies.
Skip to toolbar