Support » Plugin: LeagueManager » Last 5 matches

Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author LaMonte Forthun


    I wrote a bit of code to add a new shortcode that I think will give you want you want. Give me an email address and I’ll send a new version of the ‘shortcode.php’ file. [ Or post a link to the file instead. ] You can tweak the matches template to get the output you want, but right now you’ll get this:

    November 9, 2012 20:30 Stozice Arena
    Union Olimpija Ljubljana – Real Madrid 76 – 89

    my email is [ redacted, support is offered via the forums and not email ]

    Ty very much!

    lamontef please post a link to the file instead. ty

    I’d like to see this too, along with an easy way to only show future scheduled matches, for example, the matches for the next 2 weeks.

    Yes this is a thing that I would like to see .

    [signature moderated]

    I looked for the code on but I didn’t find it. Where is it possible to find it?

    Also interesting … How can I get the updated file – shortcode.php?

    I am trying to download this plugin but it cannot be located in the WP repository. Any ideas?

    A mi tambien me interesa!!!

    Plugin Author LaMonte Forthun


    I’m working on some code that I just need to tweak the CSS for, if you’re interested in testing it, let me know. I’ll post it here sometime today or tomorrow.




    Plugin Author LaMonte Forthun


    I’m committing a test version shortly that will be, specifically for the ‘Last 5’ functionality.

    Here’s some information that will be part of the new version info )there’s also a screen shot of a ‘Last 3’ setup so you can see what it should look like):

    If you test and find that the icons at the end of each line in the standings are moving to a second line it means you don’t have enough room on your template for five past results. You can then change to a lesser number in the template, named ‘standings-last5.php’ in the ‘admin/templates’ folder. Go to 43:

    <th width=”100″ class=”last5″><?php _e( ‘Last 5’, ‘leaguemanager’ ) ?></th>

    change the ‘Last 5’ text to ‘Last 3’ if you’re going to use three past results, or whatever you choose. Then go to line 93:

    $results = get_latest_results($team->id, 5);

    Change the ‘5’ at the end to ‘3’ if you want three past results.

    The final version will probably have this as a preference option.

    Shortcode to use:

    [standings league_id=1 template=last5] or
    [standings league_id=1 group=A template=last5 logo=true]
    (group and logo are optional)

    Nice one boss.

    Keep up the good work.

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Last 5 matches’ is closed to new replies.