=== TM Works Standings for J-League ===
Contributors: tmworks
Tags: jleague, soccer, sports, standings, chart
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 1.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display the latest standings and ranking transition graphs for J-League 100 Year Plan Clubs on your WordPress site.

== Description ==

"TM Works Standings for J-League" is a responsive plugin that displays the latest standing tables and ranking transition graphs for the J-League 100 Year Plan Clubs (2026 special format).

It securely fetches the latest match points, goal differences, and history data from a dedicated JSON data source, and renders visual charts automatically at the end of your posts or via a simple shortcode.

= Features =
* **Latest Standings Table**: Displays a responsive table including points, wins/draws/losses, and goal differences.
* **Ranking Transition Graph**: Visually displays the ranking transition of each team per matchweek using Chart.js.
* **Auto-Insert**: Automatically append the standings to the bottom of your posts or pages by enabling the option in the settings.
* **Shortcode Support**: Use `[tmworks_jleague_standings]` to display the data anywhere on your site.
* **Customizable Leagues**: Choose exactly which league categories to display via the admin settings.
* **High Performance**: Utilizes AJAX and the WordPress Transients API to cache data for 1 hour, ensuring your site speed remains fast even with page caching plugins active.

= About External API Requests =
To retrieve the latest standing data, this plugin makes a GET request to a public GitHub repository managed by the author (TM Works). This ensures the standings are always up to date without requiring manual updates to the plugin.

* **Service Called:** TM Works J-League Standings API (GitHub Raw Data)
* **Data Source URL:** `https://raw.githubusercontent.com/TM-Works/J-League-ranking-table/refs/heads/main/standings.json`
* **Account Requirement:** No account, registration, or API key is required to use this service.
* **Privacy & Terms:** Data is provided freely for public use. No personal data, user information, or site information is tracked, collected, or sent to the external server. This is strictly a one-way data retrieval.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install via the WordPress Plugins menu.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the new 'J-League Standings' menu in your admin dashboard.
4. Select the leagues you wish to display and configure the auto-display settings.
5. (Optional) Use the `[jleague_standings]` shortcode in any post or page.

== Frequently Asked Questions ==

= How often is the data updated? =
The plugin uses the WordPress Transients API to fetch and cache the JSON data from GitHub every 1 hour.

= Can I display a specific league only? =
Yes. You can select the default leagues from the admin settings, or use the shortcode attribute like `[jleague_standings leagues="j1_west"]` to override it on a specific post.

= Can I change the graph colors? =
The graph uses the team colors specified in the remote JSON data, or falls back to the beautiful default color palette built into the plugin.

== Screenshots ==

1. screenshot-1.png == Intuitive admin settings panel.
2. screenshot-2.png == Standings table and Chart.js transition graph displayed on a post.

== Changelog ==

= 1.0.0 =
* Initial release.
* Added support for 2026 special format (J1 EAST/WEST, J2/J3 EAST-A/B, WEST-A/B).
* Added Auto-insert and category filtering features.
* Added Chart.js ranking transition graph.