=== Player Transfers for SportsPress ===
Contributors: savvasha
Tags: sports, football, soccer, transfers, players
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Manage and display player transfers seamlessly within SportsPress. Enhance your sports website with structured transfer records and team history.

== Description ==

**Player Transfers for SportsPress** is a powerful extension for the SportsPress plugin, allowing you to manage and display player transfers in a structured and visually appealing way. 

Whether you run a football, soccer, or any other sports website, this plugin helps track player movements between teams with ease.

If you're looking for advanced features and additional functionalities, we recommend checking out our premium plugin: [Player Transfers for SportsPress Premium](https://savvasha.com/player-transfers-for-sportspress/).

**Basic example:**
`[player-transfers]`

**Example with all attributes:**
`[player-transfers title="Summer Transfers 2024" season="2024-2025" club_in="123" club_out="456" player="789" date_from="2024-06-01" date_to="2024-08-31"]`

**Example with title only:**
`[player-transfers title="Latest Transfers"]`

**Example with date range:**
`[player-transfers date_from="2024-01-01" date_to="2024-01-31"]`

**Example with club filters:**
`[player-transfers club_in="123" club_out="456"]`

**Shortcode available attributes:**
- `title`: Select a custom title (default title is "Player Transfers").
- `season`: Show all transfers made during a specific season (use season slug i.e. "2024-2025").
- `club_in`: Show all incoming transfers of a specific club (use club id).
- `club_out`: Show all outcoming transfers of a specific club (use club id).
- `player`: Show all transfers of a specific player (use player id).
- `date_from`: Show all transfers from a date and after (use date format YYYY-MM-DD).
- `date_to` : Show all transfers until a date (use date format YYYY-MM-DD).

### Features:

- Custom Post Type for managing player transfers.
- SportsPress integration for fetching player and team data.
- Shortcode [player-transfers] to show transfer details on the frontend.

### Premium Version Features:

- **NEW** Frontend submission of Player Transfers.
- **NEW** Player Transfers templates for Teams and Players.
- **NEW:** Option to update the "Career Total" for players upon transfer (Premium version only).
- Automatically updates player data upon transfer (e.g., current team, past team, and assignment between league, season, and new team).
- Advanced AJAX-powered filtering and sorting on frontend using **DataTables**.
- Advanced filtering and sorting on backend.
- Integration with **MetaBox** premium extensions for custom fields.
- Compatible with **SportsPress Pro** feature of "Midseason Transfers".

== Installation ==

1. Ensure that **SportsPress** and **MetaBox** are installed and activated.
2. Upload the plugin files to the `/wp-content/plugins/player-transfers-for-sportspress/` directory, or install the plugin through the WordPress plugins screen directly.
3. Activate the plugin through the 'Plugins' screen in WordPress.

== Frequently Asked Questions ==

= Does this plugin work without SportsPress? =
No, this plugin is an extension for **SportsPress** and requires it to function properly.

= Does this plugin work without MetaBox plugin? =
This plugin depends on extensions of **MetaBox** so is required to function properly.

= Can I use this plugin for sports other than football (soccer)? =
Yes! As long as you use **SportsPress**, the plugin can be used for any team-based sport.

== Screenshots ==

1. Player Transfer fields.
2. Frontend Display using the shortcode.

== Changelog ==

= 1.4.1 =
* Update Freemius SDK to 2.13.1.

= 1.4.0 =
* NEW: Added "Career Total" update option for player transfers (Premium version only).
* CHANGE: Updating SportsPress data is now a required option for player transfers (Premium version only).

= 1.3.4 =
* Update Freemius SDK to 2.13.

= 1.3.3 =
* Update Freemius SDK to 2.12.2.

= 1.3.2 =
* NEW: Added date shortcode attributes.

= 1.3.1 =
* FIX: Support for MetaBox AIO.

= 1.3.0 =
* NEW: Added frontend submission functionality for Player Transfers, allowing users to submit transfers directly from the frontend (Premium version only).
* FIX: Resolved compatibility issue with latest WordPress version.
* TWEAK: Implemented TGM Plugin Activation for managing required plugin dependencies.
* TWEAK: Enhanced code structure for better performance.

= 1.2.0 =
* FIX: Player transfers should be ordered by date of transfer.
* NEW: Player Transfers template for Teams (Premium version only).
* NEW: Player Transfers templatge for Players (Premium version only).

= 1.1.0 =
* Add "title" attribute to shortcode.
* NEW: Add the option to update or not SportsPress data (Premium version only).
* NEW: Add a brief description of what was changed and when (Premium version only).

= 1.0.2 =
* Minor bug fixed.

= 1.0.1 =
* Minor bug fixed.

= 1.0.0 =
* Initial release.

== Support & Documentation ==

For support, visit our website: [https://savvasha.com/](https://savvasha.com/).
