[WordPress] 外掛分享: WP-PostRatings

首頁外掛目錄 › WP-PostRatings
WordPress 外掛 WP-PostRatings 的封面圖片
30,000+
安裝啟用
★★★★
4.3/5 分(179 則評價)
609 天前
最後更新
問題解決
WordPress 4.9.6+ v1.91.2 上架:2006-02-07

內容簡介

使用方法

開啟 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 提供

捐款

我把大部分的空閒時間花在創建、更新、維護和支援這些外掛上。如果你真的喜歡我的外掛,並且願意捐獻幾美元以表支持,我會非常感激。如果不行沒關係,你可以自由地免費使用。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.91.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP-PostRatings」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Usage

Open wp-content/themes//index.php
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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon