=== AddonLogic Star Rating Field ===
Contributors: snehalpancholi
Tags: star rating, post rating, meta field, shortcode, schema
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A reusable 0–5 star meta field with an interactive admin picker and a frontend display shortcode.

== Description ==

Star Rating Field adds a compact star-picker meta box to any post type. Editors click to set a 1–5 rating (or clear it), and the shortcode renders the stars on the frontend with optional numeric display and schema.org markup.

**Core Features:**

* Interactive click/keyboard star picker in the post editor sidebar
* Hover preview before saving
* Configurable max stars (3–10)
* Custom filled and empty star colours
* `[star_rating]` shortcode for frontend display
* Optional numeric score display
* Optional schema.org Rating markup for SEO
* Supports any public post type

== Installation ==

1. Upload `star-rating-field` to `/wp-content/plugins/`.
2. Activate via **Plugins > Installed Plugins**.
3. Go to **Settings > Star Rating Field** to configure post types and colours.
4. Edit any post — the rating picker appears in the sidebar.
5. Add `[star_rating]` to display the rating in content.

== Frequently Asked Questions ==

= Does it affect SEO? =
Yes. When Schema Markup is enabled, the shortcode outputs schema.org Rating structured data, which search engines may use for rich snippets.

= Can I display a different post's rating? =
Yes: `[star_rating post_id="42"]`

= What happens if no rating is set? =
The shortcode returns an empty string — nothing is displayed.

== Changelog ==

= 1.0.0 =
* Initial release.

== Screenshots ==

1. Interactive star picker in the post editor sidebar.
2. Star rating displayed on the frontend with numeric score.
3. Settings page with colour picker and post type selection.
