• Resolved y2kand13

    (@y2kand13)


    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.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I am assuming block is gutenberg? If that is the case, it is not compatible with gutenberg.

    Thread Starter y2kand13

    (@y2kand13)

    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.