• Resolved Jack Johansson

    (@mhmdshv)


    Hi,
    I’ve been using this plugin for a while on one of my blogs. Everything is working fine, but i’ve ran into a problem.

    I have the Rating vote text set to %RATINGS_IMAGES_VOTE% to view the votes. Now, in another part of my theme, i only need to get the rating score, such as 3.5 or 5.

    If i use %RATINGS_SCORE% instead, i can’t output the stars anymore.

    Is it possible to do these both?

    Thanks for the support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jack Johansson

    (@mhmdshv)

    I got it using get_post_meta($post_id, 'ratings_average', true );, however i would like to avoid using this directly.

    By the way this plugin randomly stops and starts working, same site, same post, sometimes works, and some other time not (just loads the stars and then nothing)

    Plugin Author Lester Chan

    (@gamerz)

    That is the correct way of getting it, internally the plugin uses that. If it loads and nothing, most likely your site has a JS error. You have to debug it using the console https://codex.www.ads-software.com/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Thread Starter Jack Johansson

    (@mhmdshv)

    That is the annoying part actually. There is absolutely no error/warning in the console/debug. As if the code is not there at all. I scratched my head over and over and no results.

    Thanks for the reply, it’s working now though. But sometimes it’s not in the mood to work ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘can’t get only the rating value’ is closed to new replies.