Title: League Info Shortcode
Last modified: November 3, 2017

---

# League Info Shortcode

 *  Resolved [180simon](https://wordpress.org/support/users/180simon/)
 * (@180simon)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/league-info-shortcode/)
 * Can anyone tell me why the League Info shortcode isn’t working for me?
 * Specifically none of the League Info shortcodes are working i.e.
    fp-league-info
 * The shortcode is completely ignored and not shown at all in the post.
 * Thanks in advance.
    Simon
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fleague-info-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/league-info-shortcode/#post-9649392)
 * 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, 6 months ago by [AntoineH](https://wordpress.org/support/users/antoineh/).
 *  Thread Starter [180simon](https://wordpress.org/support/users/180simon/)
 * (@180simon)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/league-info-shortcode/#post-9669218)
 * 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
 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/league-info-shortcode/#post-9671564)
 * 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.
 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/league-info-shortcode/#post-9812311)
 * Reason why shortcode did not return anything was found: “Use leagues” setting
   was set to false.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘League Info Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/football-pool/assets/icon-256x256.png?rev=983880)
 * [Football Pool](https://wordpress.org/plugins/football-pool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/football-pool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/football-pool/)
 * [Active Topics](https://wordpress.org/support/plugin/football-pool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/football-pool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/football-pool/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [AntoineH](https://wordpress.org/support/users/antoineh/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/league-info-shortcode/#post-9812311)
 * Status: resolved