WordPress文章評分插件:WP-PostRatings
安裝和使用
後台搜索 WP-PostRatings 即可安裝,或者 下載 WP-PostRatings
啟用後,需要手動在循環語句
<?php while (have_posts()) : the_post(); ?>
之後需要顯示評分的地方添加代碼:
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
設置
插件安裝好之後,會在後檯面板的左側菜單中添加 Ratings ,其中包括以下項:
- Manage Ratings : 管理現有的評分
- Ratings Options : 管理評分的選項
- Ratings Template: 評分模板
- Uninstall WP-PostRatings: 卸載插件
參考: