• I’m looking to use a ratings plugin for WordPress that can attach a rating to a post but I need to have the rating saved to the post itself.

    I use JSON to pull parts of the post out for different views and if the rating isn’t part of the post content, it won’t be visible via JSON.

    Is there a way to get KK Ratings to save the rating as a custom field in the post?

    http://wordpress.org/plugins/kk-star-ratings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Kamal Khan

    (@bhittani)

    they are already being saved as custom fields 🙂

    Plugin Contributor Kamal Khan

    (@bhittani)

    _kksr_ratings
    _kksr_casts
    _kksr_avg
    Thread Starter fegul

    (@fegul)

    I’m using the JSON API plugin to extract post contents and those fields are not appearing in the custom fields object.

    I see some custom fields that I’ve created and some theme-specific theme fields but there are no kk-specific fields.

    Plugin Contributor Kamal Khan

    (@bhittani)

    I don’t know about the plugin you are using, but these are indeed post mea data.

    you can check it by running the following php code:

    <?php echo get_post_meta($id, '_kksr_ratings', true); ?>

    where $id is an id of a post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Saving rating to the post itself’ is closed to new replies.