
內容簡介
使用方法
開啟 wp-content/themes/<你的主題名稱>/index.php
你也可以將它置放在 archive.php、single.php、post.php 或 page.php 中
尋找:<?php while (have_posts()) : the_post(); ?>
在它之下的任何地方添加以下程式碼 ( 將要顯示評分的地方 ):<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
如果你不想在每篇文章或頁面中顯示評分,不要使用上面的程式碼。只需要在選定的文章或頁面內容中輸入 [ratings] 即可嵌入評分。
如果你想嵌入其他文章的評分,使用 [ratings id="1"],其中 1 是你想要顯示的文章或頁面的評分 ID。
如果你想嵌入其他文章的評分結果,使用 [ratings id="1" results="true"],其中 1 是你想要顯示的文章或頁面的評分結果 ID。
開發現況
開發團隊
https://github.com/lesterchan/wp-postratings
鳴謝
外掛圖示由 Freepik 於 Flaticon 提供
圖示由 FamFamFam 和 Everaldo 提供
捐款
我把大部分的空閒時間花在創建、更新、維護和支援這些外掛上。如果你真的喜歡我的外掛,並且願意捐獻幾美元以表支持,我會非常感激。如果不行沒關係,你可以自由地免費使用。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Usage
Open wp-content/themes/
You may place it in archive.php, single.php, post.php or page.php also.
Find:
Add Anywhere Below It (The Place You Want The Ratings To Show):
If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in [ratings] into the selected post/page content and it will embed ratings into that post/page only.
If you want to embed other post ratings use [ratings id="1"], where 1 is the ID of the post/page ratings that you want to display.
If you want to embed other post ratings results, use [ratings id="1" results="true"], where 1 is the ID of the post/page ratings results that you want to display.
Development
https://github.com/lesterchan/wp-postratings
Credits
Plugin icon by Freepik from Flaticon
Icons courtesy of FamFamFam and Everaldo
Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
