Wirt Star Rating

外掛說明

Wirt Star Rating allows users to rate your content using a simple 1–5 stars system. It is easy to integrate, customizable, and displays votes statistic.

Features:
* Star Rating System – Users can rate content from 1 to 5 stars.
* Lightweight – No jQuery Dependency, built with native JavaScript (vanilla JS).
* Easy Integration – Works with posts, pages, and custom post types.
* Customizable Appearance – Style the stars to match your theme.
* Votes Count – Display total votes per item.
* Votes Restriction – Prevents multiple votes from the same user.
* Multiple Custom Post Types Support – Works with any public post types content.
* JSON-LD Schema – Adds structured data for selected post types.
* Admin Control – Edit average rating and total votes manually.

Development

This plugin uses build tools to compile and minify JavaScript and SCSS files for production.

The uncompressed, human-readable source code can be found in the following directory within the plugin:
* assets/src/ (contains JavaScript and SCSS source files)

The compiled, production-ready files are output to:
* assets/dist/

To build the production assets yourself:
1. Navigate to the root directory of the plugin.
2. Run npm install to install dependencies.
3. Run npm run build to compile the assets into the assets/dist/ directory.

螢幕擷圖

  • Star rating display on a post.
  • Plugin General Settings page
  • Plugins metabox on editor page

安裝方式

  1. Upload the wirt-star-rating folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Customize the plugin in the General Setting page. Select the post types (Post, Page) where ratings are needed.
  4. Optionally, adjust other settings to customize the appearance and add JSON-LD data.

常見問題集

How do I add the rating to my post?

Select post type where you would like to display star rating and set necessary data on general settings page.

Can I use it on custom post types?

Yes, the plugin supports any post type, including custom ones.

Can I style the stars?

Yes, you can customize the appearance via CSS or the plugin settings.

Can I manually adjust votes and rating sum?

Yes, in the WordPress admin, you can manually edit the total votes and rating sum for each post.

Can a user vote more than once?

No, a user cannot vote again unless they clear their browser data.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Wirt Star Rating〉的開發相關工作。

參與者

將〈Wirt Star Rating〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release.