We'll create fresh WordPress site with RC Post Rating installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin adds a pair of buttons that provide the ability for visitors to your website to give feedback on page / post / custom post type content by up / down rating. The Up/down rating statistics can be viewed on the respective post lists in the WordPress admin and also via a table of statistics in a Dashboard widget, these statistics can be exported in a CSV format file.
Enable the plugin and access the “RC Post Rating” page in the Settings menu in your WordPress Admin to configure the required settings. The settings screen allows you to enable/disable the Dashboard widget, admin columns for the various post types on your site, set the global default Up / Downvote button text and also global default CSS classes for the buttons.
There are two methods that can be used to add the buttons to your site, a shortcode and a block for the modern block editor. Note that the simplest way to use it is to set the global attributes in the settings page then add the shortcode or block to the page / post / cpt content, the global defaults will automatically be brought in to the rendered code from each of these blocks. Note however that the shortcode (unlike the block version at this time) does provide a way to override these defaults, so if alternatve Up / Down text was needed for a specific page then these can be set per page if needed. The shortcode attributes are as follows:
id
– defaults to the ID of the page that the shortcode is on, so this doesn’t need to be specifically set in the shortcode so normally you would omit this attributeclasses
– defaults to the global values from the plugin settings page, or empty if these haven’t been setuptext
– defaults to the global values from the plugin settings page, or ‘Up’ if these haven’t been setdowntext
– defaults to the global values from the plugin settings page, or ‘Down’ if these haven’t been setThe most basic shortcode format is:
[rc_post_rating]
To override the default classes and button text you would use:
[rc_post_rating classes="my-buttons" uptext="Yes" downtext="No"]
This will use the default settings from the plugin’s admin page.