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.

屏幕截图

安装

  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.