Usage - lokothodida/matrix_rateit GitHub Wiki

On Pages

Call this on a page:

(% matrix_rateit %)

To show the ratings system. You can call 3 other parameters for it as well:

(% matrix_rateit, 'slug', 'showAverage', 'showTotal' %)

Parameters explained below.

Anywhere Else

RateIt can be used for any type of content, not just pages. You can call the PHP function matrix_rateit to display the rating system.

matrix_rateit($slug = null, $showAverage = false, $showTotal = false)
  • $slug: slug/id of whatever you want the rating to be for. Make it unique for each piece of content (by default it uses the page's slug)
  • $showAverage: true to show average, false to hide it
  • $showTotal: true to show total, false to hide it

Moderation

From the admin panel, go to Plugins -> Manage Ratings to reset ratings and view their (basic) stats, as well as configure the display of the ratings (number of stars, star size, CSS).

rateit_2 rateit_3