• Resolved 180simon

    (@180simon)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    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 7 years ago by AntoineH.
    Thread Starter 180simon

    (@180simon)

    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

    (@antoineh)

    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

    (@antoineh)

    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.