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

    (@gamerz)

    Might be a theme/plugin conflict, does it work on the default theme without any plugins activated in the first place?

    Thread Starter PaRaDiGm11

    (@paradigm11)

    I used default theme and disabled all plugins and had one error ( another error ).

    Then i activated all plugins with the default theme and had the same error.

    Then i put my current theme but unmodified and had the same error.

    The problem isn’t my plugins or the theme i’m using unmodified.

    I compared this with my modified theme. If i use this code <?php if(function_exists('the_ratings')) { the_ratings(); } ?> two times on the same page ( one at after the title and one in the comment section so people can write a review and rate it, i get this error:

    View post on imgur.com


    Only one overall score should be marked.

    If I use this code <?php echo the_ratings_results( $POST_ID ); ?> after the title and this code <?php if(function_exists('the_ratings')) { the_ratings(); } ?> in the comment section i get this error:

    View post on imgur.com


    No element specified for the evaluation ( it’s my current theme ).

    If i just use this code one time on my page <?php if(function_exists('the_ratings')) { the_ratings(); } ?> after the title and no other wp-postratings codes in the page, i get the same error as default WordPress theme with no plugin enabled,

    View post on imgur.com


    Please enter a value for the url field

    How to use use this code <?php echo the_ratings_results( $POST_ID ); ?> after the title and this code <?php if(function_exists('the_ratings')) { the_ratings(); } ?> in the comment section and getting no error?

    Thank you.

    Plugin Author Lester Chan

    (@gamerz)

    For the second screenshot, the Logo URL error is expected, please read https://www.ads-software.com/plugins/wp-postratings/#faq. It can be solved.

    It is not designed to be used twice within a post. I would recommend just use <?php if(function_exists('the_ratings')) { the_ratings(); } ?>

    Thread Starter PaRaDiGm11

    (@paradigm11)

    In my current Template i’m using <?php echo the_ratings_results( $POST_ID ); ?> to show ratings and <?php if(function_exists('the_ratings')) { the_ratings(); } ?> to allow users to rate in the comment section.

    I added the logo for Google rich snippets.

    I still get two errors:

    View post on imgur.com

    View post on imgur.com

    Is it possible to fix this?

    Thank you.

    Plugin Author Lester Chan

    (@gamerz)

    My advice is is to use just one code which is <?php echo the_ratings_results( $POST_ID ); ?>. It is possible to use both, but it might screw up some HTML structure and hence the error. You might want to hire a developer for it as it is not within my support scope.

    • This reply was modified 7 years, 5 months ago by Lester Chan.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google rating not working’ is closed to new replies.