Everybody who has upgraded to Version 2.9 should first upgrade to 2.9.1 which will be out soon. This is crucial for everybody who upgrades to LeagueManager 2.9. You first need to add a new season and afterwards all teams and matches will be gone. Don’t despair, they just need to be put into the season you just created. Suppose the league ID is 1 and you have added a season named “2007″. You can then add all teams and matches to this season with the following function:
move_league_to_season( 1, 2007);
Now it is possible that you have created two different leagues to emulate two seasons. Let’s say League A 2007 (ID 1) and League B 2008 (ID 2) should belong to the same league, but only different seasons “2007″ and “2008″. First add the two seasons to League A. Then allocate season 2007 to all teams and matches in this league with the above command. Next you can move all teams and matches from League B 2008 to League A season 2008 with the following statement:
move_league_to_season( 2, 2008, 1);
In general the function looks like this
move_league_to_season( leagueID, season, new_leagueID, old_season);
leagueID is the ID you want to move teams and matchs to, season is the seaso. new_leagueID is only needed if you want to merge two leagues into one with different season. old_season should only be needed if you’ve already run the above functions and want to re-allocate teams and matches.
Note: This function is also available in Version 2.9, but the last two arguments are exchanged. So the call from above would look like this
move_league_to_season( 2, 2008, false, 1);
I hope this clarifies things and sorry for the inconvinience
Edit: The best way to do that is put the function call in functions.php of your theme.
Kolja Schleich Plugins leaguemanager