Hard to say what the problem is. But there are some things you can check. First of, the shortcode needs a valid league ID and a valid value for ‘info’ (possible values are: ‘name’, ‘points’, ‘avgpoints’, ‘wavgpoints’, ‘numplayers’ or ‘playernames’). Without this, it just returns nothing, so you might wanna check this first.
Secondly, some of the info comes from the score table. If that database table is empty, then it can’t return the data. So second thing you can do, is to do a calculation of the scores.
Also, an easy test would be to use the following shortcode. This should always display the name of the default league “all users”. No matter if there is data available or not.
[fp-league-info league="1" info="name"]
-
This reply was modified 8 years, 5 months ago by
AntoineH.
Thanks for replying Antoine.
The [fp-league-info league=”1″ info=”name”] shortcode doesn’t work at all – I’ve used each of the following…
[fp-league-info league=”2″ info=”name”]
[fp-league-info league=”2″ info=”points”]
[fp-league-info league=”2″ info=”avgpoints”]
[fp-league-info league=”2″ info=”wavgpoints”]
[fp-league-info league=”2″ info=”numplayers”]
[fp-league-info league=”2″ info=”playernames”]
I’ve used league=”2″ as that is what is listed in the Leagues table alongside the “for money” league. The only other available is my custome league, which is number 5. The codes don’t work for league=”5″ either.
Maybe there is a default league missing?
Regards
Simon
No, Don’t think that’s the problem if your own league id also doesn’t work.
If I can get a temporary admin account I can do some debugging if you want. You can reach me on the email address that’s on the bottom of the help page.
Reason why shortcode did not return anything was found: “Use leagues” setting was set to false.