|
1月 02
|
Rating Plugin
Installation
1. Download and extract the “star-rating-for-reviews” folder
2. Upload the “star-rating-for-reviews” folder to your WordPress plugin directory, usually “wp-content/plugins”
3. Activate the plugin in your WordPress admin panel
Upgrade
1. Deactivate the plugin in your WordPress admin panel
2. Remove the “star-rating-for-reviews” folder in your WordPress plugin directory
3. Follow the installation guide above
Normal rating:
[rating:3.5] = Rating: ★★★½☆
By default, this will be interpreted as 3.5/5, as shown in the rating stars generated. Default denominator can be changed via options detailed in the next section. Even though this tagging style is simple, it might not be future proof when someday you decided to change the default denominator to say 10 (for whatever reason). In this case 3.5 will be interpreted as 3.5/10, which is very different compared to 3.5/5. Once you start using this tagging style, make sure you are not going to change the default denominator in the future. ![]()
[rating:3/4] = Rating: ★★★☆
“3/4″ will generate a “3 out of 4 stars” rating and “2/8″ will generate “2 out of 8 stars” and so on. This will continue to work as long as the denominator is not larger than 20. Beyond that, the score will be normalized and display in the default 5 stars system, as shown in the next example.
[rating:93/100] = Rating: ★★★★½
The “Rating:” prefix you can see in all examples above is the default prefix, which you can remove easily to show just the stars or add in your own custom CSS class by changing some options. More information about this in the Options section.
最近のコメント