• Resolved gaucho code

    (@glowzar)


    Hi i have a question for the developer. im trying to integrate a plugin with the essential grid plugin to display posts… my need is to add meta fields to filter content, does this plugin generate a meta-field with the average vote for each post? if so , I could wire it with essential grid to produce the rating filter.thanks for your help!!!

    https://www.ads-software.com/plugins/multi-rating/

Viewing 1 replies (of 1 total)
  • Plugin Author dpowney

    (@dpowney)

    Hi,

    The ratings are stored in the post meta table as a serialized array. This is done so that we do not have to recalculate the ratings all the time. There is a setting to turn off storing the ratings in the post meta table if desired.

    Meta key
    mr_rating_results

    Sample PHP serialized meta value
    a:9:{s:20:”adjusted_star_result”;d:5;s:11:”star_result”;d:5;s:22:”total_max_option_value”;i:5;s:21:”adjusted_score_result”;d:5;s:12:”score_result”;d:5;s:17:”percentage_result”;d:100;s:26:”adjusted_percentage_result”;d:100;s:5:”count”;i:1;s:7:”post_id”;s:1:”1″;}

    Sample PHP unserialized meta value

    Array
    (
    [adjusted_star_result] => 5
    [star_result] => 5
    [total_max_option_value] => 5
    [adjusted_score_result] => 5
    [score_result] => 5
    [percentage_result] => 100
    [adjusted_percentage_result] => 100
    [count] => 1
    [post_id] => 1
    )

    In case anyone wonders, the Pro version has a different meta key mrp_rating_result_<rating form id>.

    Hope this helps.
    Daniel

Viewing 1 replies (of 1 total)
  • The topic ‘question about plugin integration’ is closed to new replies.