Title: [Plugin: Five Star Rating] Truncated posts
Last modified: August 20, 2016

---

# [Plugin: Five Star Rating] Truncated posts

 *  Resolved [mkachtan](https://wordpress.org/support/users/mkachtan/)
 * (@mkachtan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-five-star-rating-truncated-posts/)
 * Is there a way to show the star rating on truncated posts? For example, my theme
   truncates a post over X amount of characters and then displays a Read More link.
   When a truncated post has the shortcode for Five Star Rating it is shown as asterisks.
 * What do I need to modify to change this behavior?
 * [http://wordpress.org/extend/plugins/five-star-rating/](http://wordpress.org/extend/plugins/five-star-rating/)

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

 *  Plugin Author [andrew.alba](https://wordpress.org/support/users/andrewalba/)
 * (@andrewalba)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-five-star-rating-truncated-posts/#post-2541082)
 * 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.
 *  Thread Starter [mkachtan](https://wordpress.org/support/users/mkachtan/)
 * (@mkachtan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-five-star-rating-truncated-posts/#post-2541143)
 * 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](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](https://wordpress.org/support/users/andrewalba/)
 * (@andrewalba)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-five-star-rating-truncated-posts/#post-2541284)
 * 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](http://codex.wordpress.org/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 ‘[Plugin: Five Star Rating] Truncated posts’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [andrew.alba](https://wordpress.org/support/users/andrewalba/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-five-star-rating-truncated-posts/#post-2541284)
 * Status: resolved