• Hello sir

    How can I display only the rating results on an HTML page.

    I use this code <div class=”is-one-third”><span class=”stars”>[ratings id=”get_the_ID” results=”true”]</span></div> is that true?

    And does get_the_ID work there?

    • This topic was modified 5 years, 3 months ago by arwanapratama.
Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    You will need PHP template and not HTML. My guess is you mean PHP WordPress theme file. Use <?php echo the_ratings_results( get_the_ID() ); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Code to display rating results in HTML’ is closed to new replies.