Title: Voting doesn&#8217;t work from single.php
Last modified: December 31, 2019

---

# Voting doesn’t work from single.php

 *  Resolved [y2kand13](https://wordpress.org/support/users/y2kand13/)
 * (@y2kand13)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/voting-doesnt-work-from-single-php/)
 * I would like the active voting block on the single php template and the non voting
   review block on the index php. Right now it is backwards. The short codes do 
   not work on either template and calling the_ratings(); from the single template
   just returns an inactive review block. I have a forum layout and only display
   the post title minus the content on the index page, so voting from that page 
   is undesirable.
 * Is there someway to reorder which template gets the active voting block and which
   template get the inactive review block?
 * Almost forgot, Happy New Years! 🙂
    -  This topic was modified 6 years, 5 months ago by [y2kand13](https://wordpress.org/support/users/y2kand13/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvoting-doesnt-work-from-single-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/voting-doesnt-work-from-single-php/#post-12283549)
 * I am assuming block is gutenberg? If that is the case, it is not compatible with
   gutenberg.
 *  Thread Starter [y2kand13](https://wordpress.org/support/users/y2kand13/)
 * (@y2kand13)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/voting-doesnt-work-from-single-php/#post-12284026)
 * I found this snippet
 * `if(is_front_page() || is_home()): echo the_ratings_results(get_the_ID()); endif;`
 * that you provided for someone else in a different thread, and it took care of
   my index page issue. Then I disabled all my plugins and the issue with your plugin
   not working from the single php template went away also! Case resolved your plugin
   works perfect for my needs, love it!
 * The conflicting plugin is, jQuery Comment Preview by Dimox, I really like that
   also, but it’s not being maintained, so I’d like to know what you would charge
   me to repair it?

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

The topic ‘Voting doesn’t work from single.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [y2kand13](https://wordpress.org/support/users/y2kand13/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/voting-doesnt-work-from-single-php/#post-12284026)
 * Status: resolved