Okay
  Public Ticket #1374143
How to display rating inside the post ?
Closed

Comments

  • Bobby started the conversation

    Hello,

    I tried to copy the code inside the ./wp-content/plugins/gd-rating-system/methods/stars-rating/render.php file and paste in bottom of recipe-item.php, which doesn't work. Can you please tell me how I can keep just the rating at bottom of the page ? So that bottom of the article I will say the rating is  <rated number> .   

    Thanks.

  •  2,057
    Theme replied

    Hi Bobby,

    If you check in single-recipe.php this is how we display the rating:

    if (function_exists('gdrts')) {
            
            if (function_exists('gdrts_render_rating')) {
                echo '<div class="rating">';
                gdrts_render_rating(array('echo' => true, 'entity' => 'posts', 'name' => 'recipe', 'id' => get_the_id()));
                echo '</div>';
            }
        }

    Best regards,

    themeenergy support