Editor rating + scale

Front Support Plugins Support WP Rich Snippets Plugin Editor rating + scale

This topic contains 3 replies, has 2 voices, and was last updated by  Hesham 1 year, 9 months ago.

  • Author
    Posts
  • #7145

    Miguel Gaton
    Member

    Hello,

    In this example http://demo.authorhreview.com/richsnippets/2014/06/10/review-post-example/ the review has:

    – 4/5 starts (editor rating)
    – 90%

    I need to know how do you add both ratings (starts and scale) at the same time??

    Regards,

  • #7149

    Hesham
    Keymaster

    There is a function that you can use, it return an array of all Box values. Example:

    // Get box template
    $template = array();
    if (function_exists('wprs_template')) $template = wprs_template();

    Now, all values are stored in the $template array. To display any of the elements simple use:

    echo $template['KEY_NAME'];

    P.S. Use KEY_NAME to output desired value. Example:

    echo $template['editor_star_rating'];
    echo $template['score_editor'];

    For debugging; you can display all values:

    // debug
    echo '<pre>';
    var_dump($template);
    echo '</pre>';

    I hope this helps.

  • #7160

    Miguel Gaton
    Member

    Thanks!!!

  • #7277

    Hesham
    Keymaster

    No problem!

The forum ‘WP Rich Snippets Plugin’ is closed to new topics and replies.